GeekInterview.com
Series: Subject: Topic:
Question: 29 of 90

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?

?
Asked by: Interview Candidate | Asked on: Nov 25th, 2007
Showing Answers 1 - 2 of 2 Answers
sk_seeker

Answered On : Dec 22nd, 2007

View all answers by sk_seeker

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.

Yes  1 User has rated as useful.
  
Login to rate this answer.
UncaAlby

Answered On : Nov 8th, 2008

View all answers by UncaAlby

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.

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Shell Scripting Interview Questions

Solaris Admin Interview Questions

UNIX Interview Questions

Unix Programming Interview Questions

Windows Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.