Operating System Programming and Technical

Q. What is fragmentation? Tell about different types of fragmentation?

A. When many of free blocks are too small to satisfy any request then fragmentation occurs. External fragmentation and internal fragmentation are two types of 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. Internal fragmentation is the space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks.

Read Solution (Total 0)

Operating System Other Question

Q. What is thrashing?

A. It is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages, rather than executing instructions. This is due to an inordinate number of page faults
Q. What are necessary conditions for dead lock?

A. 1. Mutual exclusion (where at least one resource is non-sharable)
2. Hold and wait (where a process holds one resource and waits for other resource)
3. No preemption (where the resources can't be preempted)
4. Circular wait (where p[i] is waiting for p[j] to release a resource. i= 1,2,...¦n
j=if (i!=n) then i+1
else 1 )