eli5 What’s the difference between os and an kernel

1.12K views

eli5 What’s the difference between os and an kernel

In: 33

33 Answers

Anonymous 0 Comments

OS doesn’t have a good definition, its a collection of all sorts of things, always has a kernel, some other tools, a window manager usually (the thing that makes your screen work). A kernel is a lot better defined.

A kernel is THE program that the operating system runs, everything else is run on top of the kernel. How? Usually all the stuff you run on your computer is run as a program, and the kernel provides what this program needs to run.

An operating system’s main job is to run programs and the kernel is the code that actually runs to allow this to happen. Kernels create little sandboxes (this is the technical term btw) for programs to play in and give them all the tools they need to do whatever. The kernel hands over control of the CPU to all the processes so they can run the code they run then yanks it away so that something else can run, it provides RAM as needed so that the program has scratch paper to run, whenever the program has to access a file it asks the kernel to fetch it for it, anytime you press your keyboard or click your mouse the kernel tells the program that the keyboard/mouse was clicked. If a program has nothing to do at this current moment it just gives back the CPU to the kernel so that it can do whatever/hand it over to what needs it next.

Most of the stuff we consider part of the operating system is run on top of the kernel as a normal program. But the kernel is the bedrock of everything.

You are viewing 1 out of 33 answers, click here to view all answers.