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
Operating Systems problems
Search Results
1. What is the difference between Primary storage and secondary storage?
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
2. What is the state of the processor, when a process is waiting for some event to occur?
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
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
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
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
Correct Answer: In a multiprocessor system there exist several caches each may containing a copy of same variable A Then a change in one cache should immediately be reflected in all other caches this process of maintaining the same value of a data in all the caches s called cache-coherency
9. What are the benefits of multithreaded programming?