Correct Answer: Hard real-time systems required to complete a critical task within a guaranteed amount of time Soft real-time computing requires that critical processes receive priority over less fortunate ones
Correct Answer: Transferring the control from one process to other process requires saving the state of the old process and loading the saved state for new process This task is known as context switching
5. What is DRAM? In which form does it store data?
Correct Answer: DRAM is not the best, but it?s cheap, does the job, and is available almost everywhere you look DRAM data resides in a cell made of a capacitor and a transistor The capacitor tends to lose data unless it?s recharged every couple of milliseconds, and this recharging tends to slow down the performance of DRAM compared to speedier RAM types
6. What is the state of the processor, when a process is waiting for some event to occur?
Correct Answer: Main memory - only large storage media that the CPU can access directly Secondary storage - extension of main memory that provides large nonvolatile storage capacity
Correct Answer: A situation, where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called race condition To guard against the race condition we need to ensure that only one process at a time can be manipulating the same data The technique we use for this is called process synchronization
9. What is the difference between Compiler and Interpreter?
Correct Answer: An interpreter reads one instruction at a time and carries out the actions implied by that instruction It does not perform any translation But a compiler translates the entire instructions
10. What are the different functions of Scheduler?
Correct Answer: Scheduler deals with the problem of deciding which of the process in the ready queue is to be allocated the CPU Short Term Schedulers, Long Term Schedulers