View worked solution
Answer: 19
We trace the allocation of jobs to memory partitions using the Best-Fit algorithm and a strict FIFO queue order.
Initial State ():
- Partitions: , , , (all free).
- Jobs are allocated as follows:
- allocated to [best-fit]. Runs .
- allocated to [best-fit]. Runs .
- allocated to [best-fit]. Runs .
- allocated to [best-fit]. Runs .
Timeline of events:
- At : completes. becomes free. Next job is allocated to . Runs .
- At : completes. becomes free. Next job cannot fit in any free partition ( is free). The queue is blocked.
- At : completes. becomes free. still cannot fit.
- At : completes. becomes free. still cannot fit.
- At : completes. becomes free. is allocated to [best-fit]. Runs . Next job must wait.
- At : completes. becomes free. is allocated to [best-fit]. Runs .
Thus, the job () completes at time 19.
Free practice · Your answers on this page are not saved.
