🎓 BookMCQ
← Back to 20. Influential Operating Systems

📝 XDS-940 operating system (8 MCQs)

Berkeley Time-Sharing on the Modified XDS-940

The XDS-940 operating system was an experimental time-sharing system developed at the University of California, Berkeley, using a modified XDS-930 computer. It supported multiple processes, protected execution, system calls, and paged address relocation. Unlike Atlas, its paging mechanism did not provide demand paging; processes were swapped between main memory and drum storage as the system managed concurrent users.

Relocating Processes Without Loading Pages on Demand

Multiple users needed protected execution and efficient use of the available physical memory. Paging allowed each process to use a virtual address space independent of its physical location, while swapping moved processes to and from a drum. The design separated logical address relocation from demand paging, an important distinction when comparing early virtual-memory implementations.

Page Tables, Privileged Instructions and Process Control

Each user process had a virtual address space of 16K words, with 2K-word pages and a 64K-word physical memory. Page tables were kept in registers and translated virtual page references to physical pages. User and monitor modes distinguished execution privileges; system calls allowed programs to create, start, suspend, and destroy subprocesses.

Mapping a Virtual Page to a Physical Page

Suppose a process references virtual page 3, and its page-table entry identifies physical page 9. With 2K-word pages, an offset of 120 words produces physical word address 9 times 2K plus 120, or 18,552. The translation relocates the reference; it does not by itself indicate that the page was fetched on demand.

Shared Code, Drum Swapping and Process Isolation

Several processes could share read-only reentrant code, conserving memory, while separate process spaces supported isolation and communication. Drum swapping helped accommodate more users than could remain resident simultaneously. The design provided useful time-sharing facilities, but its register-resident page tables and lack of demand paging differ from the structures and fault-driven loading used in later virtual-memory systems.

Three Misconceptions About XDS-940 Memory Management

'XDS-940 implemented Atlas-style demand paging' is incorrect; its paging was used for relocation. 'A page table was stored only on the drum' is false; its entries were kept in registers. 'User programs could execute privileged I/O instructions freely' is incorrect; such operations trapped to the monitor.

Exam Focus: Calculate Address Relocation and Identify Swapping

Practise translating a virtual address using a 2K-word page size and a supplied page-table entry. Remember the 16K-word virtual space, 64K-word physical memory, and register-based page tables. Compare relocation paging with demand paging, and explain how drum swapping, shared read-only code, user mode, and monitor mode supported multiuser execution.

Key Terms of the XDS-940 System

  • Relocation - Mapping virtual addresses to physical locations.
  • Page table - Structure recording page mappings.
  • Swapping - Moving processes between memory and drum.
  • Monitor mode - Privileged operating-system execution.
  • Reentrant code - Code safely shared by processes.
2
Easy
4
Medium
2
Hard

📝 All XDS-940 operating system MCQs

Q1. If a CPU can process input twice as fast as a single card reader can read cards, how many card readers working simultaneously are needed to keep the CPU continuously busy?

A.1
B.2 ✅
C.3
D.4
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The CPU runs at 2×2\times the speed of one reader, so one reader would supply only half the needed data rate. Two readers together provide exactly the required input rate, preventing the CPU from idling. Option B matches this calculation. Options A, C, and D either under‑supply or over‑supply data, leading to idle time or unnecessary hardware. This reflects the principle that matching I/O throughput to CPU speed maximizes system efficiency.

Q2. Why is magnetic tape classified as a sequential‑access device?

A.Because the tape head must move linearly from the beginning to the end of the media ✅
B.Because data is stored in multiple magnetic layers
C.Because magnetic polarity determines access order
D.Because the device uses random‑access algorithms
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Tape storage requires the read/write head to travel along the length of the tape, so data can only be accessed in the order it was written. This linear motion makes it sequential‑access. The other options describe characteristics of other media types or unrelated concepts, which do not explain the sequential nature of tape I/O.

Q3. A batch system has three card readers and one tape drive. The CPU can process data at three times the speed of a single card reader. Will the CPU be idle while jobs are being prepared?

A.Yes, it will be idle
B.No, it will not be idle ✅
C.It depends on the tape drive speed
D.Cannot be determined from the information given
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Since the CPU processes data at 3×3\times the rate of one reader, the combined input from three readers provides a data rate equal to the CPU’s capacity. Therefore the CPU will have sufficient input and will not idle. Option B reflects this balance. Option A assumes insufficient input, while C and D introduce unrelated factors not needed for the conclusion.

Q4. What is the primary disadvantage of off‑line operation compared with on‑line I/O?

A.A longer delay before a specific job runs ✅
B.Higher hardware cost
C.Reduced reliability of the system
D.Increased power consumption
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Off‑line operation requires jobs to be read onto tape, batched, rewound, transported, and mounted before the CPU can execute them, creating a noticeable delay. This delay is the chief drawback. Higher cost, reliability issues, and power use are not intrinsic to the off‑line method, making options B, C, and D incorrect.

Q5. Which device eliminated the sequential‑access limitation of magnetic‑tape systems?

A.Disk ✅
B.Printer
C.Card punch
D.Plotter
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Disk storage provides random access, allowing the read/write head to jump directly to any location without scanning sequentially. This capability removed the bottleneck inherent in tape systems. Printers, punches, and plotters are output devices and do not affect how data is accessed, so options B, C, and D are incorrect.

Q6. A CPU reads from tape at 100 MB/s while a card reader writes at 30 MB/s. Approximately how many simultaneous card readers are required to keep the CPU fully utilized?

A.2
B.3
C.4 ✅
D.5
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: To match the CPU’s 100 MB/s demand, divide the CPU speed by one reader’s 30 MB/s rate: 100/30≈3.33100/30 \approx 3.33. Since a fraction of a reader is impossible, four readers are needed to exceed the required bandwidth and ensure continuous CPU operation. Option C correctly reflects this calculation. Options A and B under‑provide data, while D adds unnecessary hardware.

Q7. How does the random‑access nature of disks improve job turnaround time compared with tape?

A.It allows a specific job to be retrieved without reading the entire medium ✅
B.It reduces the power needed for I/O operations
C.It speeds up the printing of job results
D.It improves magnetic integrity of stored data
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Random access lets the system locate and load a particular job directly, skipping unrelated data that would otherwise have to be read sequentially on tape. This dramatically shortens the waiting period before execution. The other options describe unrelated benefits that do not directly affect turnaround time.

Q8. A system processes 200 jobs per hour using tape. If disk technology reduces the off‑line delay by 40 % while the CPU speed stays the same, approximately how many jobs per hour can now be processed?

A.240
B.280
C.333 ✅
D.400
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: A 40 % reduction in delay means each job takes 60 % of its original time. The new throughput is 200÷0.60≈333200 \div 0.60 \approx 333 jobs per hour. Option C matches this calculation. Options A and B underestimate the gain, and D overestimates it, because they do not apply the correct proportional increase.

🔗 Related Topics (MCQs)