CS FundamentalsHardGATE CS
A 32-bit system uses segmentation with paging. A logical address is (segment s, offset d) with d of 32 bits; within a segment, d is split into a 20-bit page number and a 12-bit offset. Segment 2's page table maps page 3 to frame 0x1A. What physical address does (2, 0x00003ABC) give?
- A. 0x0003ABC
- B. 0x0001AABC
- C. 0x001AABC0
- D. 0x0001A3BC
Correct answer: B. 0x0001AABC
0x00003ABC splits into page 0x00003 and offset 0xABC. Page 3 of segment 2 is in frame 0x1A, so the physical address is 0x1A × 0x1000 + 0xABC = 0x1AABC, written 0x0001AABC.
More Operating Systems questions
- A thread library offers only kernel-level threads (one-to-one). Which change makes thread creation and switching cheapest without losing…
- A program creates threads with for (i = 0; i < 4; i++) pthreadcreate(&t[i], NULL, work, &i); and each thread reads arg as its index. What…
- In a directory, ln data h and ln -s data s are run, and then mv data data2 renames the original within the same file system. What happens…
- What does it mean that the read() system call on a terminal is 'blocking', and what state does the process enter while no input is…
- Which statement about thrashing and the degree of multiprogramming is correct?
- Two threads acquire mutexes: T1 locks A then B; T2 locks B then A. Which change prevents deadlock while still letting both threads hold…