Processes
Is the operating system Linux also treated as a process?
|
Operating system is a combination of multiple processes(like memorymanagement,scheduler ..........) but, we cannt treat itself as a process.
This is upto my knowledge...!:) |
Do you know what an OS is and what a process is?
|
If the OS is just a collection of programs and if it is executed by the processor
just like any other program, is the OS a process? If so, how is it controlled? |
Other OS designs go to great lengths to treat most of the kernel as processes, though at some level an OS kernel must still be fundamentally different from a collection of processes.
Linux is not at either extreme of that design spectrum. The kernel design does not go to great lengths to treat itself the same way it treats processes, but it also does use some scheduling mechanisms that are mainly intended to ordinary processes to schedule some kernel activity. Compared to Windows, Linux is more modular, especially in having less in the kernel and more in ordinary processes. So many things one would think of as being part of the OS (as opposed to utilities or applications) are ordinary processes in any Unix-like OS. |
Why are you asking ?
|
As already noticed, the Linux OS is modular and is made of many processes. Maybe you want to dig into the boot process sequence and understand when the kernel takes control of your machine. The first and main process is /sbin/init that by convention has process ID equal to 1:
Code:
$ ps -fC init Some good reading can enlighten about this topic: http://docs.redhat.com/docs/en-US/Re...-shutdown.html http://www.ibm.com/developerworks/li...y/l-linuxboot/ http://www.bootchart.org/ The last link shows a visual representation of the boot sequence and all the processes involved. Hope this helps. |
Quote:
Even though activities that logically could be in the kernel are processes outside the kernel in Linux, there still is a significant kernel. As I understand it, some activities that are inside the kernel still act like processes to varying degrees. But some activities in the kernel are run in ways that are not similar to processes. The Linux OS is not made of only many processes. |
Quote:
Just out of curiosity, what do you mean by some activities in the kernel are run in ways that are not similar to processes? Any reference? Thank you. |
Perhaps the OP is trying to distinguish between the kernel (which, strictly speaking, IS the OS), and userspace applications. In that case, the OS/kernel is not considered a process. It does not have most or all of the attributes that constitute a process.
--- rod. |
All times are GMT -5. The time now is 07:57 PM. |