• Zerlyna@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    edit-2
    1 year ago

    I can’t explain it except when it goes bad it takes a dump and you get Blue Screen Of Death.

  • TheMetaleek@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    4
    ·
    1 year ago

    I’m sorry but doesn’t this go against this community’s concept of providing simple explanations for things?

        • INeedMana@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I don’t know. In the description I only see

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

          That is hardly domain knowledge. One would have to be writing in assembler or programming microcontrollers to be able to say they are nibbling on the domain knowledge for this. And knowing the trends we are probably not even speaking about C/C++, rather python. This makes the answering easier only because you don’t have to explain what the executive is

          The answers given are good and it was rather other commenters that started requesting more depth

  • SulaymanF@lemmy.world
    link
    fedilink
    English
    arrow-up
    39
    ·
    1 year ago

    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.

    • dustyData@lemmy.world
      link
      fedilink
      English
      arrow-up
      24
      arrow-down
      2
      ·
      edit-2
      1 year ago

      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.

        • asudox@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          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.

          • SulaymanF@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

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

  • aberrate_junior_beatnik@midwest.social
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    3
    ·
    1 year ago

    I agree that this question isn’t really appropriate for this forum. You can’t explain how a kernel works to a 5 year old beyond extremely vague descriptions you probably already know.

    If you do want to delve more into this, I’d suggest spending time on the OSDev Wiki. You could even write a toy OS for yourself. It’s not as hard as it sounds.

  • Xylight (Photon dev)@lemmy.xylight.dev
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 year ago

    My simplest analogy for people who are knowledgeable about computers is that it’s basically a giant driver.

    Program wants to write to a CD? Instead of calling an obscure function in an undocumented hardware manual for every single disk ever, you let the kernel handle it by calling a well documented function that works on a lot of stuff it has drivers for.

    The kernel will handle what programs want memory and will give it an address space where it can do it’s thing, and will handle what CPU cycles each program gets.

    An operating system is basically a kernel that is meant to run and manage programs.

  • bouh@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    In brief, it manages the computer hardware resources. So there is the stuff to talk to the hardware and manage access to it, and the scheduler to decide which program can use the processor when.

    In other words, it’s a middleware for applications to talk to the hardware.

  • sznio@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    It’s the main most privileged program running on a computer, through which all other programs access shared resources like hard drives, memory, network etc. It also performs access control on these resources.

  • PrimePeriapsis@lemmy.world
    link
    fedilink
    English
    arrow-up
    35
    arrow-down
    5
    ·
    1 year ago

    Basically, when it is microwaved the center becomes fluffy and the corn kernal “pops” which is why we call it pop corn.