What is an OS kernel ? How does it differ from an operating system?

Xinus picture Xinus · Jan 6, 2010 · Viewed 204.1k times · Source

I am not able to understand the difference between a kernel and an operating system. I do not see any difference between them. Is the kernel an operating system?

Answer

Sedat Kapanoglu picture Sedat Kapanoglu · Jan 6, 2010

The technical definition of an operating system is "a platform that consists of specific set of libraries and infrastructure for applications to be built upon and interact with each other". A kernel is an operating system in that sense.

The end-user definition is usually something around "a software package that provides a desktop, shortcuts to applications, a web browser and a media player". A kernel doesn't match that definition.

So for an end-user a Linux distribution (say Ubuntu) is an Operating System while for a programmer the Linux kernel itself is a perfectly valid OS depending on what you're trying to achieve. For instance embedded systems are mostly just kernel with very small number of specialized processes running on top of them. In that case the kernel itself becomes the OS itself.

I think you can draw the line at what the majority of the applications running on top of that OS do require. If most of them require only kernel, the kernel is the OS, if most of them require X Window System running, then your OS becomes X + kernel.