GATE / CS ARCHIVE

SUBJECT COLLECTION

Operating Systems · Other / Mixed Topics

4 questions, newest first

Browse topics
1 mark · MCQ
Report issue

Matching OS abstractions and hardware

Other / Mixed Topics

Question 1.9, GATE 1999: Match thread, virtual address space, file system and signal to CPU, memory, disk and interrupt respectively; option C gives 3,2,4,1.
Question 1.9, GATE 1999: Match thread, virtual address space, file system and signal to CPU, memory, disk and interrupt respectively; option C gives 3,2,4,1.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

A thread is an execution context scheduled on a CPU. A virtual address space is the process-facing abstraction of memory. A file system organizes persistent disk storage into named files and directories. A signal is a software notification analogous to an interrupt in its asynchronous transfer of control. Thus the mapping is thread→3, virtual address space→2, file system→4, signal→1, giving C. This matches abstractions rather than asserting that signals and hardware interrupts are identical.

Original paper, page 1

1 mark · MCQ
Report issue

Matching scheduling disciplines

Other / Mixed Topics

Question 3.6, GATE 1997: Match disk scheduling, batch processing, time sharing, interrupt processing to SCAN, FIFO, round robin, LIFO respectively.
Tap to enlarge
Your answer
Answer & solution

Answer: C: 2, 4, 1, 3 (no official key was published)

SCAN moves the disk head systematically across pending requests. FIFO is the basic batch-job queue discipline. Round robin rotates time slices among runnable processes. Nested interrupts return in reverse order of entry, a LIFO stack behavior. The resulting mapping is 2, 4, 1, 3, C. Actual schedulers may add priorities or other refinements; the question asks for these conventional associations.

Original paper, page 3

2 marks · Other
Report issue

Matching implementation associations

Other / Mixed Topics

Question 2(iii), GATE 1991: Match buddy system, interpretation, virtual memory, pointer with P runtime type checking; Q segmentation; R memory allocation; S garbage collection.
Question 2(iii), GATE 1991: Match buddy system, interpretation, virtual memory, pointer with P runtime type checking; Q segmentation; R memory allocation; S garbage collection.
Tap to enlarge
Answer & solution

Answer: Buddy–R; interpretation–P; virtual memory–Q; pointer–S as the intended associations (no official key was published)

Buddy allocation splits power-of-two blocks and merges free buddies, so R is direct. Segmentation is one way to implement a virtual address space, making Q the intended virtual-memory association. Dynamically typed interpreters commonly check types during execution, suggesting P. Pointer reachability underlies tracing garbage collection, suggesting S. The last three are associations, not necessities: interpreters can execute statically typed languages, virtual memory can use paging rather than segmentation, and pointer-supporting languages need not provide garbage collection. The matching should not be promoted into universal implementation laws.

Original paper, page 2

2 marks · MSQ
Report issue

False operating-system claims

Other / Mixed Topics

Question 3(xi), GATE 1991: GFG asks false statements: A virtual memory limited by secondary storage; B critical sections require indivisible instructions such as test-and-set; C monitors ensure no deadlock; D LRU may thrash; E best fit prevents fragmentation. Forum omits C and misprints thrashing as hashing.
Question 3(xi), GATE 1991: GFG asks false statements: A virtual memory limited by secondary storage; B critical sections require indivisible instructions such as test-and-set; C monitors ensure no deadlock; D LRU may thrash; E best fit prevents fragmentation. Forum omits C and misprints thrashing as hashing.
Question 3(xi), GATE 1991: GFG asks false statements: A virtual memory limited by secondary storage; B critical sections require indivisible instructions such as test-and-set; C monitors ensure no deadlock; D LRU may thrash; E best fit prevents fragmentation. Forum omits C and misprints thrashing as hashing.
Tap to enlarge
Select all that apply
Answer & solution

Answer: C and E are false; B is false if it means a special atomic read-modify-write is required; A depends on the memory model (no official key was published)

Monitors enforce mutual exclusion but can still deadlock through circular waits, so C is false. Best fit may leave many tiny holes, so E is false. LRU can thrash when the working set exceeds available frames, so D is true. B needs care: Peterson-style algorithms use atomic reads/writes without test-and-set, refuting a requirement for a special read-modify-write instruction. Yet they still rely on indivisible basic accesses in the usual model, so the broader literal claim about any indivisible instruction is not refuted that way. A conventionally concerns committed backing capacity, not virtual-address-space width. The common intended false set B, C, E is conditional on those readings.

Original paper, page 4