If the OS is just a collection pf 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?

?

Showing Answers 1 - 6 of 6 Answers

sk_seeker

  • Dec 22nd, 2007
 

Execution contexts can be of two types: thread/process context OR an Interrupt context. What this means is that to execute code, one has to be in a thread context or a an Interrupt context. OS code or any code for that matter has no context. It is the execution stream that has a context. So, whenever we are executing OS code, we are doing so on behalf of one of the two contexts mentioned above.


The behavior of the OS is controlled by user requests via system calls, by interrupt requests and by the policy and mechanisms put in place to manage resources, provide protection, etc.

UncaAlby

  • Nov 8th, 2008
 

Yes, it is executed by the hardware like any other program.  It controls itself.

This is why you have the concept of a kernel, which would be the smallest possible piece of the operating system that generally has to be running before anything else -- with the exception of the boot loader which boots up the machine from a powered-down state, and among various clean-up duties, its only job is to load and execute the kernel.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions