Question 71
HardIn a segment table, segment 1 has base 6300 and limit 400. The CPU generates offset 402 within segment 1. What does the hardware do?
- 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 segment table, segment 1 has base 6300 and limit 400. The CPU generates offset 402 within segment 1. What does the hardware do?
It maps it to physical address 6702
It traps to the operating system, because the offset exceeds the limit
It wraps round to offset 2
It maps it to 6300
Sign up free to see the answer and a step-by-step explanation.
What is the purpose of the valid–invalid bit in a page-table entry?
To show whether the page belongs to the process's legal address space (and is in memory)
To mark a page as shared
To show whether the page was modified
To store the page size
Sign up free to see the answer and a step-by-step explanation.
What is a hashed page table useful for?
Address spaces larger than 32 bits, where most of the space is unused
Disk scheduling
Segment tables only
Very small address spaces
Sign up free to see the answer and a step-by-step explanation.
Why is TLB reach (entries × page size) important?
It controls the disk cache
It decides the CPU clock speed
It sets the size of the page table
It is the amount of memory that can be accessed without TLB misses
Sign up free to see the answer and a step-by-step explanation.
How are shared libraries shared between processes under paging?
They are stored in the segment table only
The library is loaded into the TLB
Each process gets its own copy in memory
Each process's page table maps the library's pages to the same physical frames
Sign up free to see the answer and a step-by-step explanation.
A process's logical address space has 64 pages of 2 KB each, mapped into 512 frames. How many bits are in a logical address and in a physical address?
17 and 19
17 and 20
16 and 20
6 and 9
Sign up free to see the answer and a step-by-step explanation.
What does the page-table length register (PTLR) do?
It holds the TLB size
It points to the page table
It counts page faults
It holds the page table's size, so addresses beyond it trap
Sign up free to see the answer and a step-by-step explanation.
Why does segmentation suffer from external fragmentation while paging does not?
Paging uses more memory
Paging moves pages to disk
Segments vary in size, so free memory breaks into holes of awkward sizes; pages are all the same size
Segments are always larger
Sign up free to see the answer and a step-by-step explanation.
Intel x86 in protected mode combines segmentation and paging. In 64-bit mode, how is segmentation mostly used?
Segmentation does all the translation
Paging is disabled
Each process has 64 segments
Segments are flat (base 0), so paging does almost all the work
Sign up free to see the answer and a step-by-step explanation.
A system has an 8 KB page size. How many pages does a 100,000-byte process need, and how much is wasted in the last page?
12 pages; 1,696 bytes wasted
12 pages; none wasted
13 pages; 1,696 bytes wasted
13 pages; 6,496 bytes wasted
Sign up free to see the answer and a step-by-step explanation.