The following algorithm can be described as ____. 1 Initialize memory_block(0) = 99999
2 Compute initial_memory_waste = memory_block(0) - job_size
3 Initialize subscript = 0
4 Set counter to 1
5 Do while counter <= number of blocks in memory
If job_size > memory_size(counter)
Then counter = counter + 1
Else
Memory_waste = memory_size(counter) - job_size
If initial_memory_waste > memory_waste
Then subscript = counter
Initial_memory_waste = memory_waste
Counter = counter + 1
End do
6 If subscript = 0
Then put job in waiting queue
Else
Load job into memory_size(subscript)
Adjust free/busy memory lists
7 Go fetch next job
A) first-fit memory allocation
B) best-fit memory allocation
C) least-fit memory allocation
D) fixed partition memory allocation
Correct Answer:
Verified
Q1: Compaction should always be performed only when
Q13: The first attempt to allow for multiprogramming
Q17: All computers have only a finite amount
Q18: For a fixed partition system, memory deallocation
Q19: The fixed partition scheme works well if
Q23: In the algorithm to load a job
Q24: The fixed partition scheme works well _.
A)
Q25: During compaction, the operating system must distinguish
Q27: Consider the following space requirements for jobs
Q31: In a single-user system,jobs are processed _.
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents