Question 21
EasyWhy are page sizes always powers of 2?
- A.
Because memory chips cost less
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Why are page sizes always powers of 2?
Because memory chips cost less
To make pages easier to print
So that the page number and offset can be read directly from the bits of an address
Because disks require it
Sign up free to see the answer and a step-by-step explanation.
What is a TLB hit?
The CPU has been reset
The page number is found in the TLB, so its frame number is available at once
The TLB has crashed
The page is not in memory
Sign up free to see the answer and a step-by-step explanation.
What happens on a TLB miss?
The process is terminated
The page table in memory is consulted and the TLB is usually updated
The computer restarts
The page is deleted
Sign up free to see the answer and a step-by-step explanation.
Why does paging make it easy for processes to share code?
Code is stored on the disk only
Every process gets a copy of all code
The page tables of different processes can point to the same frames
Paging forbids sharing
Sign up free to see the answer and a step-by-step explanation.
What is the main advantage of segmentation?
It needs no hardware support
It makes every segment the same size
It has no fragmentation
It matches the programmer's view of a program as separate parts such as code, stack and data
Sign up free to see the answer and a step-by-step explanation.
Without a TLB, how many memory accesses does a simple paging system need to read one data item?
2
0
1
3
Sign up free to see the answer and a step-by-step explanation.
A system has 16 frames of 4 KB each. How much physical memory does it have?
64 KB
20 KB
16 KB
4 KB
Sign up free to see the answer and a step-by-step explanation.
A system has 32-bit logical addresses and 4 KB pages. How many pages can a process's address space have?
2¹² (4096)
2³²
2¹⁶ (65,536)
2²⁰ (1,048,576)
Sign up free to see the answer and a step-by-step explanation.
With 32-bit addresses, 4 KB pages and 4-byte page-table entries, how big is a single-level page table?
4 KB
16 MB
4 MB
1 MB
Sign up free to see the answer and a step-by-step explanation.
Memory access takes 100 ns and a TLB lookup takes 20 ns. The TLB hit ratio is 80%. What is the effective memory-access time (in ns)?
Enter a number as the answer.
Sign up free to see the answer and a step-by-step explanation.