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
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
4. 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
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
7. 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
Correct Answer: A shell is an interactive user interface to an operating system services that allows an user to enter commands as character strings or through a graphical user interface The shell converts them to system calls to the OS or forks off a process to execute the command System call results and other information from the OS are presented to the user through an interactive interface Commonly used shells are sh,csh,ks etc
10. getppid() system call is used to bias the existing priority of a process