this post was submitted on 12 Sep 2023
50 points (93.1% liked)

Explain Like I'm Five

16573 readers
2 users here now

Simplifying Complexity, One Answer at a Time!

Rules

  1. Be respectful and inclusive.
  2. No harassment, hate speech, or trolling.
  3. Engage in constructive discussions.
  4. Share relevant content.
  5. Follow guidelines and moderators' instructions.
  6. Use appropriate language and tone.
  7. Report violations.
  8. Foster a continuous learning environment.

founded 2 years ago
MODERATORS
 

I am tech savvy so you don't have to disregard the details much about it. I know programming.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 48 points 2 years ago (1 children)

So operating systems are huge, they do a lot of things. They require a lot of memory and storage and some of their tasks like connecting to devices and generating images take up resources. They run a lot of programs at any given time to do all these tasks.

The kernel is a computer program but think of it as the MAIN program. It’s at the core of a computer's operating system. It’s the first program the hardware loads when you turn the computer on and it has complete control over everything in the system. It is the portion of the operating system code that is always running, always in RAM, and closing it crashes the entire computer or shuts it down. The kernel connects the hardware to the software. A full kernel controls all hardware resources (RAM, data from keyboard and mouse, data to graphics card and therefore screen), and manages all the programs running. It gives each program access to memory and the processor and even the internet. The kernel prioritizes programs and those requests.

[–] [email protected] 30 points 2 years ago* (last edited 2 years ago) (1 children)

Yes and no. Technically the BIOS is the first program the hardware loads when the computer is turned on. Then the BIOS calls the bootloader, which would be in charge of loading the OS into memory. Then the bootloader hands over the control of the hardware from the BIOS to the kernel.

The most important job of the kernel is to schedule hardware time (processor cycles, threads, I/O operations and other hardware resources) between the different programs that make up the OS. This is what the GNU/Linux meme copypasta is rambling on about. As the kernel is actually pretty useless without a software stack on top of it to provide most of the services that are later used by the shell to offer a user space.

[–] [email protected] 13 points 2 years ago (2 children)

Yes but then it wouldn’t be an ELI5 if I got that advanced.

[–] [email protected] 2 points 2 years ago (1 children)

OP asked for the advanced details though

[–] [email protected] 11 points 2 years ago (1 children)

ELI5 with a CS degree. Certainly a challenge.

[–] [email protected] 2 points 2 years ago

Well, the dude you've replied to provided a great explanation + the correct details, so it certainly is possible.

[–] [email protected] 1 points 2 years ago (1 children)

Is the computer starting the BIOS first an advsnced topic? I don't think so. You could at least say when the OS gets booted, the kernel starts first.

[–] [email protected] 3 points 2 years ago (1 children)

You do realize you posted in /c/ExplainLikeImFive right? Not ExplainLikeImTwelve. You’re welcome. If you aren’t happy you can have a refund.

[–] [email protected] 0 points 2 years ago

I know. I will delete this post today and reask this question in c/asklemmy.