AOS Quiz 1 Solution

1. Define a process? A process is an instance of a computer program that is being executed. Many definitions have been given for the term process, including: A program in execution. The “animated spirit” of a program. The entity that can be assigned to and executed on a processor. 2. What is the difference between synchronous and asynchronous exceptions? Asynchronous exceptions are Caused by events external to the processor Indicated by setting the processor’s interrupt pin handler returns to “next” instruction. On the other hand the synchronous exceptions are Caused by events that occur as a result of executing an instruction: 3. Why do we need to suspend a process? The memory holds multiple processes and that the processor can move to another process when one process is waiting. But the processor is much faster than I/O that it will be common for all the processes in the memory for waiting for an I/O. Thus even with multi-programming, a processor could be idle most of the time. When all the processes in main memory are in the “Blocked state”, the OS can suspend one process by putting it in the “Suspend state” and transferring it to the disk.The space that is freed up in main memory can then be used to bring another process 4. What are light weight processes? Threads are called the light weight processes due to their easy context switching and memory sharing. 5. What is the context of a thread? The context of a thread contains Stack pointer, Program counter and CPU registers

Sign up to vote on this title
UsefulNot useful