š Shared computer systems (25 MCQs)
Multiple Users Accessing One Central Computer
Shared computer systems allow several users to obtain computing services from the same central machine. Instead of reserving an entire computer for one person, the operating system coordinates access to the processor, memory, files, and peripheral devices. Early shared systems evolved through multiprogramming and time-sharing, making expensive computing facilities accessible to more users while improving utilisation of central resources.
Reducing the Cost and Idle Time of Dedicated Computing
Dedicated operation left expensive processors unavailable to other users when a program waited for input or output. Sharing addressed this inefficiency by keeping multiple jobs or user sessions available. It also allowed organisations to centralise maintenance and equipment. The design required protection, controlled resource allocation, and mechanisms to prevent one user's activity from disrupting another's.
Multiprogramming and Time-Sliced Processor Access
In multiprogramming, several jobs reside in memory, and the operating system selects a ready job when another blocks. Time-sharing extends interactive access by switching rapidly among users, often using a timer interrupt to enforce a time slice. Memory protection and scheduling preserve separate execution contexts while the system manages shared devices and storage.
Two Users Sharing a Time-Sharing Computer
Suppose User A runs a calculation while User B edits a file through a terminal. When A waits for a disk operation, the scheduler can execute B's ready process. A timer can also interrupt a running process after its allocated time slice, allowing another ready user to receive CPU service without waiting for A to finish.
Higher Utilisation with Protection and Scheduling Costs
Sharing improves throughput and interactive responsiveness because the processor can serve other work during delays. It also reduces the cost per user compared with separate dedicated machines. However, context switching, memory management, security checks, and resource contention add overhead. Poor scheduling or excessive demand can increase response time, while weak protection risks cross-user interference.
Three Misconceptions About Shared Computing
'All users execute instructions simultaneously on one CPU' is incorrect; the scheduler interleaves their execution. 'Sharing removes the need for memory protection' is false; isolation is essential. 'Multiprogramming and time-sharing are identical' is misleading; multiprogramming improves utilisation, while time-sharing emphasises interactive service and short response times.
Exam Focus: Compare Multiprogramming with Time-Sharing
Explain how multiple jobs remain available and how the scheduler switches among ready processes. Compare throughput, response time, preemption, and user interaction. Trace a scenario in which one process blocks for I/O and another receives the CPU. Also identify why memory protection and controlled device access are necessary in multiuser environments.
Key Terms of Shared Computer Systems
- Time-sharing - Interactive sharing through short CPU intervals.
- Multiprogramming - Several jobs kept available in memory.
- Time slice - Allocated processor interval.
- Context switch - Change between execution contexts.
- Isolation - Separation of users' resources.
š All Shared computer systems MCQs
Q1. What year did the Manchester MarkāÆ1 run successfully for the first time?
š Explanation: The Manchester MarkāÆ1 achieved its first successful run in . This date is a key milestone because it marks the debut of a working storedāprogram computer, distinguishing it from earlier machines that could only perform fixed tasks. Choices A and B are earlier years before the prototype was completed, and D is after the commercial Ferranti MarkāÆ1 appeared. Knowing the correct year helps students place the invention in the broader timeline of computing history.
Q2. Which computer is recognized as the first commercial computer sold to customers?
š Explanation: The FerrantiāÆMarkāÆ1, released in , was the first computer marketed commercially. ENIAC and UNIVACāÆI were earlier prototypes or limitedārun machines, while IBMāÆ701 came later. Recognizing the FerrantiāÆMarkāÆ1 illustrates how the storedāprogram concept moved from research labs to the marketplace, enabling businesses to purchase and operate their own generalāpurpose computers.
Q3. Who are the two pioneers most closely associated with the development of the storedāprogram concept?
š Explanation: JohnāÆvonāÆNeumann and AlanāÆTuring independently explored the idea of a machine that stores both instructions and data, laying the groundwork for modern computers. Babbage and Lovelace preādated electronic computers, while Hopper and Zuse contributed later innovations, and Ritchie and Thompson created later software tools. Understanding these pioneers clarifies the intellectual origins of the storedāprogram architecture.
Q4. Why was the storedāprogram concept considered revolutionary compared to earlier fixedātask computers?
š Explanation: The storedāprogram idea separated hardware from software, so the same machine could execute different tasks simply by loading new instructions. Earlier computers were hardāwired for a single purpose, making any change laborāintensive. Options A and C describe technical details that are not the core novelty, and D is false because early systems still needed operators. This revolution underpins the flexibility of modern computers.
Q5. How did the use of frontāpanel switches influence the programming workflow on early computers?
š Explanation: Frontāpanel switches forced programmers to set each instruction bit by bit, turning programming into a slow, errorāprone manual process. Automation came later with paper tape and punched cards. The switches did not offer a GUI or networking capabilities. Recognizing this limitation helps students appreciate why later input media dramatically increased productivity.
Q6. What advantage did having separate program and data stores provide to early computers?
š Explanation: Separate storage meant that instructions and data occupied distinct memory regions, reducing the risk that a program would accidentally modify its own codeāa common bug in early machines. While simultaneous fetching (option B) became possible later with cache designs, the primary safety benefit was codeādata separation. Options A and D misstate hardware effects. This principle is still used in modern architectures to protect executable code.
Q7. How did the secrecy surrounding World WarāÆII affect the diffusion of early computer technology?
š Explanation: During the war, many advances were classified, preventing engineers in other countries from learning about storedāprogram ideas until after the conflict. This secrecy delayed broader commercial exploitation and limited early collaboration. The other options describe opposite outcomes that did not occur at the time. Understanding this context explains why the first commercial computers appeared only a few years after the war ended.
Q8. Why did early computers require the programmer to also act as the operator?
š Explanation: Early machines lacked operating systems; the programmer had to load code, set start addresses, and monitor execution manually. The presence of AI assistants (A) or global networking (D) was nonexistent, and while singleāprogram execution (C) was true, the key reason was the absence of system software to automate those tasks. This dual role highlights the evolution toward distinct programming and systemāadministration roles.
Q9. How did the ability to load programs from punched cards improve operational efficiency?
š Explanation: Punched cards enabled operators to feed a series of instructions automatically, supporting batch processing and reducing the time spent on individual switch toggling. Human oversight was still needed for setup and error checking, so A is incorrect. The cards did not enlarge the hardware (C) and did not force machineālanguage coding (D). This efficiency gain paved the way for larger software projects.
Q10. What impact did the ManchesterāÆMarkāÆ1 have on later commercial computers?
š Explanation: The ManchesterāÆMarkāÆ1 proved that a storedāprogram machine could operate reliably, directly inspiring the commercial FerrantiāÆMarkāÆ1. While vacuum tubes were already used, and magnetic tape came later, the key legacy was the architectural concept, not size constraints. Recognizing this influence helps students trace how research prototypes evolve into marketable products.
Q11. How does the storedāprogram concept influence modern operating systems?
š Explanation: Modern operating systems rely on the ability to store both code and data in memory, allowing them to load, schedule, and switch between many programs. The OS is not hardāwired (A), does not require separate hardware (C), and memory management remains essential (D). This continuity shows how early ideas still shape todayās complex software environments.
Q12. Why was monitoring execution via console lights important for debugging early programs?
š Explanation: Console lights illuminated register contents and memory addresses, giving programmers a realātime view of what the computer was doing. This manual observation helped locate faults. The lights did not fix code (B), could not render graphics (C), nor transmit data over networks (D). Understanding this technique illustrates early humanāinātheāloop debugging.
Q13. How did the transition from manual loading to automatic loading affect error rates in early computers?
š Explanation: Automatic loading (e.g., from paper tape) removed the need for operators to toggle each switch, dramatically cutting transcription errors. While system complexity grew, the primary source of mistakes shifted away from manual entry. Options C and D ignore the clear improvement, and A misattributes complexity as the dominant factor. This shift underscores the value of automation in reliability.
Q14. A company in 1950 wants to upgrade from manual switch loading to punchedācard input. Which benefit is most direct?
š Explanation: Switching to punched cards mainly reduces the physical effort required from operators, lessening fatigue and the chance of manual mistakes. While speed may improve indirectly, the primary advantage is ergonomic. Graphical interfaces and networking were far beyond the technology of the era, making those options irrelevant.
Q15. If a modern embedded system mimics early consoleālight monitoring, what limitation would it most likely face?
š Explanation: Recreating console lights would give only simple on/off or binary indications, which lack the detailed diagnostics modern developers expect. Highāresolution graphics (A) require different hardware, power (C) and language compatibility (D) are unrelated to the monitoring method. Recognizing this limitation highlights why modern debugging tools are far more sophisticated.
Q16. Given a hypothetical early computer with a program store of words and a data store of words, what is the maximum total memory available?
š Explanation: The total memory is the sum of program and data stores: words. Option A reflects only the program store, B only the data store, and D exceeds the combined capacity. This simple addition demonstrates how early designs allocated separate regions for code and data.
Q17. A student designs a simple storedāprogram simulation. Which component must be implemented to reflect the concept accurately?
š Explanation: To mimic a storedāprogram machine, the simulation needs distinct regions for code and data, allowing the CPU to fetch instructions from one area while reading/writing data elsewhere. A fixed decoder (A) lacks flexibility, a unified memory without distinction (C) misses the separation principle, and a printer (D) is unrelated to the core concept.
Q18. If a programmer forgets to set the starting address correctly before execution, what is the most likely outcome?
š Explanation: An incorrect start address means the CPU begins fetching instructions from an unintended location, leading to unpredictable behavior and almost certainly a crash. The hardware does not autoācorrect (C), nor does it alter speed (A) or pause for input (D). This scenario reinforces the importance of precise address handling.
Q19. In a museum exhibit, visitors can toggle frontāpanel switches to input instructions. Which educational objective does this activity satisfy?
š Explanation: Manipulating switches gives visitors direct experience of how early programmers manually entered binary instructions, highlighting the labor involved. It does not relate to cloud services (A), highālevel compilation (C), or quantum effects (D). Such handsāon learning connects historical practices to contemporary appreciation of abstraction.
Q20. Suppose a team wants to emulate early computer error handling using console lights. Which strategy would be most authentic?
š Explanation: Early machines used illuminated panels to indicate which register or address caused a fault, so flashing the relevant light replicates that authentic feedback. Modern methods like stack traces, email alerts, or file logging belong to later generations and would not convey the same historical feel.
Q21. An organization wants to preserve historical code written on punched cards. Which preservation method is most appropriate?
š Explanation: Physical preservation in a controlled environment protects the original artifact from humidity, temperature, and light damage, maintaining authenticity. Scanning (A) creates a digital copy but does not safeguard the original; translation (B) loses the original format; reāprinting (D) creates a new artifact, not the historic one.
Q22. If a modern cloud service adopted a storedāprogram architecture, which feature would it most directly emulate?
š Explanation: A storedāprogram design keeps program instructions and user data in distinct memory regions, mirroring the classic separation. Automatic scaling, streaming, and blockchain are unrelated architectural concepts. Recognizing this link shows how foundational ideas persist even in largeāscale cloud platforms.
Q23. A researcher compares execution speed of manual loading versus automatic loading. Which metric would most clearly demonstrate the difference?
š Explanation: The elapsed time from initiating a program to its first observable result captures the overhead of manual entry versus automatic loading. CPU cycles per instruction (A) reflect processing speed, not loading overhead. Memory usage (C) and power consumption (D) are unrelated to the specific loading method.
Q24. A new curriculum includes a module on early computers. Which activity best demonstrates the concept of program vs data separation?
š Explanation: Physically sorting instruction cards apart from data cards makes the abstract idea concrete, showing how early machines kept code and data in different areas. Writing Python (A) hides the separation, assembling a laptop (C) is unrelated, and debugging latency (D) deals with networking, not memory architecture.
Q25. A startup plans to build a hobbyist computer using the storedāprogram principle. Which design decision aligns with that principle?
š Explanation: Allocating a readāonly memory (ROM) for the fixed firmware and a separate randomāaccess memory (RAM) for mutable user data preserves the classic programādata separation. Single memory that allows overwriting (A) defeats the purpose, hardāwiring (C) returns to fixedātask designs, and eliminating memory (D) removes the storedāprogram capability entirely.