Question 61
HardMemory has free partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in that order). Processes of 212 KB, 417 KB, 112 KB and 426 KB arrive in that order. With first fit, which process cannot be placed?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Memory has free partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in that order). Processes of 212 KB, 417 KB, 112 KB and 426 KB arrive in that order. With first fit, which process cannot be placed?
The 426 KB process
The 112 KB process
The 417 KB process
All are placed
Sign up free to see the answer and a step-by-step explanation.
Memory has free partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in that order). Processes of 212 KB, 417 KB, 112 KB and 426 KB arrive in that order. With best fit, where does the 426 KB process go?
The 500 KB partition
The 600 KB partition
The 300 KB partition
It cannot be placed
Sign up free to see the answer and a step-by-step explanation.
Memory has free partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in that order). Processes of 212 KB, 417 KB, 112 KB and 426 KB arrive in that order. With worst fit, how many processes are placed?
4
3
1
2
Sign up free to see the answer and a step-by-step explanation.
A buddy system manages 1 MB. A 70 KB request arrives. How large is the block it receives?
128 KB
256 KB
70 KB
64 KB
Sign up free to see the answer and a step-by-step explanation.
In a buddy system, when can two free blocks be merged?
When they are buddies: equal-sized halves split from the same larger block
Never
Whenever they are next to each other
Only at boot time
Sign up free to see the answer and a step-by-step explanation.
What is the main drawback of the buddy system?
It cannot merge blocks
It needs paging
Internal fragmentation, since requests are rounded up to powers of two
External fragmentation only
Sign up free to see the answer and a step-by-step explanation.
Which technique lets a process be larger than physical memory without virtual memory hardware?
Compaction
Overlays
Paging
Caching
Sign up free to see the answer and a step-by-step explanation.
Why does compaction need relocatable code?
Compaction encrypts memory
Processes must keep working after being moved to new addresses
Compaction only moves free space
Relocation is never needed
Sign up free to see the answer and a step-by-step explanation.
With relocation register 14000 and limit register 3500, which logical address is valid and what does it map to?
3500 maps to 17500
2800 maps to 16800
4000 maps to 18000
14000 maps to 28000
Sign up free to see the answer and a step-by-step explanation.
What is the difference between internal and external fragmentation?
They are the same
External happens only with paging
Internal happens only on disks
Internal is wasted space inside an allocated block; external is free space split into pieces too small to use
Sign up free to see the answer and a step-by-step explanation.