🎓 BookMCQ
← Back to 20. Influential Operating Systems

📝 RC 4000 operating system (9 MCQs)

Per Brinch Hansen's Multiprogramming System for RC 4000

The RC 4000 operating system was designed by Per Brinch Hansen for the Danish RC 4000 computer. Its central contribution was a small nucleus that supplied mechanisms for creating and coordinating processes, rather than imposing a fixed policy for scheduling or resource allocation. Hierarchical process creation and message-based communication allowed higher-level programs to construct different operating-system environments.

Separating Kernel Mechanisms from Operating-System Policies

Different workloads require different scheduling and resource-allocation strategies. A system fixed to one policy can be unsuitable for batch processing, interactive terminals, or real-time control. RC 4000 addressed this problem by keeping the nucleus general and allowing programs above it to implement policies. This separation made the system adaptable without embedding every service in its core.

Process Trees and Message-Based Coordination

The nucleus provided primitives to create processes in a hierarchical parent-child structure and to coordinate them through messages. A parent could start subordinate processes responsible for particular services. Processes communicated by sending and receiving messages rather than relying solely on shared memory. The nucleus managed fundamental process mechanisms, while higher-level components determined how work and resources were organised.

Building a Batch or Real-Time Environment Above the Nucleus

A system designer could create a parent process that starts a job-management process and several worker processes. For a batch workload, the parent could allocate jobs in sequence; for a real-time workload, another policy could prioritise deadline-sensitive work. The same nucleus mechanisms support both arrangements without requiring a completely different kernel design.

Flexibility Through Message Passing and Policy Separation

RC 4000 demonstrated how a compact kernel could support several operating-system styles. Message passing made process boundaries explicit and reduced dependence on shared global data. However, message transfer and process coordination introduce overhead, and a policy implemented by higher-level software must still handle fairness, deadlocks, and resource limits correctly.

Three Misconceptions About the RC 4000 Nucleus

'The nucleus dictated one fixed scheduling algorithm' is incorrect; scheduling policy could be implemented above it. 'Processes communicated only through shared memory' is false; message passing was central. 'A small nucleus automatically guarantees a reliable system' is misleading; correctness also depends on the programs and policies built around its mechanisms.

Exam Focus: Distinguish Nucleus Mechanisms from Policies

Students should explain the role of the nucleus, hierarchical process creation, and message communication. Compare a mechanism, such as creating or messaging a process, with a policy, such as deciding which job runs first. Be ready to explain how one general nucleus could support batch, interactive, and real-time environments through different higher-level software.

Key Terms of the RC 4000 System

  • Nucleus - Core process-management mechanisms.
  • Message passing - Communication through exchanged messages.
  • Process hierarchy - Parent-child organisation of processes.
  • Mechanism - Operation provided by the system.
  • Policy - Rule controlling resource decisions.
2
Easy
4
Medium
3
Hard

📝 All RC 4000 operating system MCQs

Q1. What was the size of the drum backing store used by the THE operating system?

A.256‑KB word drum
B.512‑KB word drum ✅
C.1‑MB word drum
D.128‑KB word drum
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The THE system stored swapped pages on a magnetic drum that could hold 512 KB‑words. This size was chosen because it matched the paging unit of 512‑word pages, allowing a whole page to be transferred in one drum rotation. The other options describe drums that are either too small or too large for the system’s design, making them incorrect. Recognizing the correct drum size helps understand the hardware constraints the OS had to work with.

Q2. Why did the THE system assign higher priority to I/O‑bound processes?

A.Because they used less recent CPU time
B.Because they required more memory ✅
C.Because they were newer
D.Because they had larger pages
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The priority algorithm recomputed every 2 seconds and set priority inversely proportional to recent CPU usage. I/O‑bound processes typically spend little time on the CPU, so their recent CPU usage is low, giving them a high inverse value and thus higher priority. The other choices misinterpret the algorithm: memory use and page size do not affect priority, and being newer only influences initial priority, not the ongoing calculation.

Q3. A program experiences frequent page faults on the THE system. Which change would most likely reduce the fault rate?

A.Increase page size to 1024 words ✅
B.Switch to a FIFO replacement policy
C.Use the existing LRU policy
D.Disable paging entirely
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Increasing the page size from 512 to 1024 words reduces the total number of pages needed to represent a program, so fewer pages must be swapped in and out, lowering the fault frequency. The system already uses LRU, which is optimal for locality, so changing the replacement policy would not help. Disabling paging would exceed the limited 32 KB memory, causing failures. Thus, a larger page size is the most effective adjustment.

Q4. How does the banker’s algorithm help the THE system avoid deadlock?

A.By guaranteeing that every resource request is satisfied immediately
B.By ensuring the system never enters an unsafe state
C.By limiting the number of processes that can run concurrently ✅
D.By allocating resources in a round‑robin fashion
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The banker’s algorithm checks each resource request against a safety condition: after granting the request, the system must still be able to allocate resources to all processes in some order that lets each finish. This prevents the system from reaching an unsafe state where deadlock could occur. Immediate satisfaction without safety checks could create deadlock, and limiting concurrency or using round‑robin does not address resource safety, making those options incorrect.

Q5. Three processes have used CPU time in the last 8 seconds as follows: P1 – 2 s, P2 – 5 s, P3 – 1 s. The THE system recomputes priority every 2 seconds as the inverse of recent CPU usage. Which process receives the highest priority?

A.P1
B.P2
C.P3 ✅
D.All receive equal priority
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Priority is calculated as priority=1CPU time\text{priority}= \frac{1}{\text{CPU time}}. For P1 the value is 1/2=0.51/2=0.5, for P2 it is 1/5=0.21/5=0.2, and for P3 it is 1/1=1.01/1=1.0. The larger the inverse, the higher the priority, so P3, with the smallest recent CPU usage, attains the highest priority. The other processes have lower inverses, and priorities are not equal because the CPU times differ.

Q6. The system has 3 instances of resource R. Allocation: P1‑1, P2‑1, P3‑0. Maximum needs: P1‑2, P2‑2, P3‑1. Available = 1. P3 now requests 1 instance of R. Which decision keeps the system in a safe state?

A.Grant the request
B.Den​y the request ✅
C.Grant but monitor later
D.Grant after swapping resources
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: If the request is granted, the new allocation becomes P3‑1 and available drops to 0. The remaining needs are P1‑1, P2‑1, P3‑0. With no available resources, neither P1 nor P2 can finish, so the system cannot reach a state where all processes complete—this is unsafe. Denying the request preserves safety because the current state (available = 1) allows either P1 or P2 to finish first, releasing resources. The other options either assume monitoring or swapping, which are not part of the banker’s safety check.

Q7. What performance advantage did the Venus system gain by implementing its lower layers in microcode compared to the THE system?

A.It allowed dynamic process creation
B.It reduced the need for semaphores
C.It provided faster execution of low‑level operations ✅
D.It increased the size of the drum backing store
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Microcode executes directly on the hardware, bypassing the higher‑level operating‑system code that the THE system used for its lower layers. This hardware‑level implementation speeds up critical operations such as context switches and I/O handling, giving the Venus system a noticeable performance edge. Dynamic process creation and semaphore usage are software concerns, and drum size is unrelated to execution speed, so those choices are incorrect.

Q8. If the system’s memory consists of 32 KB of 27‑bit words and each page holds 512 words, how many pages can be resident in memory at once?

A.16
B.32
C.48
D.64 ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: First convert the memory size to words: 32 KB = 32 × 1024 = 32768 words. Divide by the page size: 32768÷512=6432768 \div 512 = 64 pages. Therefore, up to 64 pages of 512 words each can fit in memory simultaneously. The other numbers result from incorrect conversions or division errors, making them unsuitable for representing the actual capacity.

Q9. Why did the THE system use a static set of processes rather than creating processes dynamically?

A.To simplify synchronization and reduce overhead
B.To limit the number of users ✅
C.To enable hardware paging
D.To avoid using semaphores
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A static process set means the operating system knows all processes in advance, allowing it to design fixed semaphore relationships and avoid the runtime cost of creating and destroying process control blocks. This design choice reduces synchronization complexity and overhead. Limiting users or enabling hardware paging are unrelated to process creation strategy, and the system already employed semaphores, so those options do not explain the static design.

🔗 Related Topics (MCQs)