Question 41
MediumIn a buddy system managing 512 KB, how much internal fragmentation does a 100 KB request cause?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
In a buddy system managing 512 KB, how much internal fragmentation does a 100 KB request cause?
28 KB
0 KB
156 KB
12 KB
Sign up free to see the answer and a step-by-step explanation.
Fixed partitions of 200 KB each hold processes of 150 KB, 90 KB and 200 KB. What is the total internal fragmentation?
50 KB
160 KB
110 KB
0 KB
Sign up free to see the answer and a step-by-step explanation.
Memory has free holes of 30 KB, 40 KB and 50 KB scattered between processes. A 100 KB request arrives. What is this situation an example of?
Belady's anomaly
Thrashing
Internal fragmentation
External fragmentation
Sign up free to see the answer and a step-by-step explanation.
At which time does execution-time (run-time) address binding happen?
When the program is compiled
While the program runs, address by address, using hardware such as the MMU
Never
When the program is loaded, once
Sign up free to see the answer and a step-by-step explanation.
Why does compaction need relocation to be dynamic?
Compaction only works on disk
Processes are moved to new addresses while they exist, so their addresses must be re-mapped at run time
Compaction deletes processes
Compaction needs no relocation
Sign up free to see the answer and a step-by-step explanation.
What is the 50-percent rule for first fit?
First fit is twice as fast as best fit
Only half the processes fit
For every N allocated blocks, about 0.5N blocks are lost to fragmentation
Half of memory is always free
Sign up free to see the answer and a step-by-step explanation.
Which allocation strategy tends to leave the largest leftover holes?
First fit
Worst fit
Next fit
Best fit
Sign up free to see the answer and a step-by-step explanation.
What is next fit?
Always choose the smallest hole
Like first fit, but each search starts from where the previous one ended
Always choose the largest hole
Choose a random hole
Sign up free to see the answer and a step-by-step explanation.
What is a memory overlay used for?
Running a program larger than physical memory by loading parts of it in turn into the same area
Encrypting memory
Speeding up the cache
Sharing memory between computers
Sign up free to see the answer and a step-by-step explanation.
Swapping a 200 MB process to a disk that transfers 100 MB/s takes how long one way (ignoring latency)?
0.5 seconds
20 seconds
2 seconds
200 ms
Sign up free to see the answer and a step-by-step explanation.