Machine-translated by Google. Questions are authored in English.
Top

Discussion

Frame allocation among processes may be done by

  • A.equal or proportional allocation according to process size
  • B.giving every process exactly one frame
  • C.allocating all frames to the newest process
  • D.allocating frames only when the disk is idle

Answer: B

Correct answer: equal or proportional allocation according to process size

Frames are distributed among processes chiefly by equal allocation, dividing them evenly, or proportional allocation, giving each process a share according to its size. Equal allocation is simple but wasteful: a small process receives frames it cannot use while a large one starves. Proportional allocation is better, though it takes no account of priority - a variation weights the shares by priority as well as size. A second, orthogonal distinction is between local and global replacement. Under local replacement a process may only take a frame from its own allocation, so its performance is predictable and unaffected by others; under global replacement it may take a frame from any process, which uses memory better overall but means a process’s fault rate depends on the behaviour of its neighbours. Global is more common in practice. Neither scheme prevents thrashing by itself. That requires the working set model or page-fault frequency control, which adjust allocation according to what each process is actually referencing.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.