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
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
2. 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
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
4. 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
5. What is the state of the processor, when a process is waiting for some event to occur?
Correct Answer: Logical address space is generated from CPU; it bound to a separate physical address space is central to proper memory management Physical address space is seen by the memory unit Logical address space is virtual address space Both these address space will be same at compile time but differ at execution time
9. What is fragmentation? Different types of fragmentation?
Correct Answer: Fragmentation occurs in a dynamic memory allocation system when many of the free blocks are too small to satisfy any request External Fragmentation: External Fragmentation happens when a dynamic memory allocation algorithm allocates some memory and a small piece is left over that cannot be effectively used If too much external fragmentation occurs, the amount of usable memory is drastically reduced Total memory space exists to satisfy a request, but it is not contiguous Internal Fragmentation: Internal fragmentation is the space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks Allocated memory may be slightly larger than requested memory; this size difference is memory internal to a partition, but not being used