📝 Computer System Architecture in Operating System (30 MCQs)
Single-Processor, Multiprocessor, and Clustered Systems
Computer system architecture describes how processing units are arranged and coordinated to execute operating system workloads. A traditional single-processor system has one general-purpose CPU, whereas multiprocessor systems contain multiple processing units sharing or coordinating access to resources. Modern multicore processors integrate several execution cores, while clustered systems connect separate computers to provide coordinated services, availability, or computational capacity.
Why Multiple Processing Units Improve Computing Capacity
Increasing processor speed alone faces power, heat, and hardware-design limitations. Multiple cores allow independent instruction streams to execute simultaneously, improving throughput when workloads contain parallel tasks. Multiprocessor designs introduce coordination requirements, including shared-memory access, synchronisation, scheduling, and cache consistency. Clustered systems address different needs by connecting complete computers, although network communication and partial failures complicate coordination.
SMP, AMP, and NUMA Resource Organisation
In symmetric multiprocessing (SMP), processors generally share memory and operating system responsibilities, allowing work to be scheduled across available CPUs. Asymmetric multiprocessing assigns specialised or master-worker responsibilities to particular processors. Non-uniform memory access (NUMA) systems organise memory into locality domains, making access to nearby memory faster than remote memory. Kernel schedulers and memory managers must consider these architectural differences.
Scheduling Work Across Four Processor Cores
Consider four independent ready processes on a machine with four available CPU cores. Subject to scheduling decisions and resource availability, the operating system can dispatch one process to each core. They may execute simultaneously rather than taking turns on a single CPU. Shared-memory conflicts, synchronisation requirements, and uneven workloads can still prevent ideal fourfold speedup.
Parallel Throughput, Scalability, and Coordination Costs
Multiprocessing can improve throughput, responsiveness, and computational capacity, particularly in servers and parallel workloads. However, speedup is limited by sequential program sections, lock contention, memory bandwidth, and scheduling overhead. SMP offers flexible resource sharing, while NUMA-aware scheduling can reduce remote memory access. Clusters additionally provide opportunities for fault tolerance, but network delays and distributed coordination remain significant limitations.
Misconceptions About Multicore and Multiprocessor Systems
'Four cores guarantee four times the performance' is incorrect because sequential work and shared-resource contention limit speedup. 'Multicore and multiprocessor always describe the same hardware arrangement' is incorrect because cores may reside within one processor package or across multiple processors. 'A cluster is simply a multicore CPU' is incorrect because a cluster connects separate computer systems.
Exam Focus: Comparing Processor and Cluster Architectures
Be able to distinguish single-processor, multicore, SMP, AMP, NUMA, and clustered architectures. Explain symmetric scheduling, memory locality, shared-memory coordination, and the limitations of parallel speedup. Questions may present processor counts, core arrangements, or workload characteristics and ask which architecture provides simultaneous execution, scalability, or improved availability.
Key Terms of Computer System Architecture
- Multicore - Multiple cores within one processor.
- SMP - Symmetric shared-memory multiprocessing architecture.
- AMP - Asymmetric processor responsibility arrangement.
- NUMA - Memory access with unequal locality costs.
- Cluster - Networked computers working together.
- Scalability - Ability to handle increased workloads.
📝 All Computer System Architecture in Operating System MCQs
Q1. A workstation contains one general-purpose CPU and a graphics processor that handles rendering. How should its processor organization be classified?
📖 Explanation: One general-purpose CPU controls overall execution, while the graphics processor performs a specialized workload. This remains a single-processor system in the operating-system sense; the tempting SMP option requires multiple peer general-purpose processors.
Q2. A database server contains four equivalent processors sharing main memory. The operating system can schedule user and kernel threads on any processor. Which architecture does this describe?
📖 Explanation: Symmetric multiprocessing gives processors comparable roles and access to shared memory under one operating-system image. The tempting asymmetric option assigns master and subordinate responsibilities rather than treating all processors as peers.
Q3. A computing system designates one processor to handle system-wide control and scheduling, while other processors execute assigned workloads. Which architecture is being implemented?
📖 Explanation: In asymmetric multiprocessing, a designated master processor handles system control and assigns work to subordinate processors. The tempting symmetric option is wrong because it assumes every processor has the same operating-system responsibilities.
Q4. A manufacturer integrates eight independent processing cores onto one silicon chip. Each core can execute instructions independently, while some cache resources are shared. Which hardware organization is this?
📖 Explanation: A multicore processor places multiple processing cores on one physical chip, potentially sharing cache and memory interfaces. The tempting multiprocessor description usually refers to multiple processor packages or sockets, not merely multiple cores.
Q5. An online banking service operates two servers. One actively processes customer requests, while the second monitors its condition and assumes responsibility when the active server fails. What cluster arrangement is used?
📖 Explanation: An active-standby cluster keeps one node ready to assume service when the active node fails. The tempting active-active description instead has multiple nodes providing service concurrently, rather than reserving one solely for takeover.
Q6. A scientific computing system has eight processors. Four processors have long queues, while the remaining four are nearly idle. Which operating-system strategy can improve overall processor utilization?
📖 Explanation: Load balancing distributes work among available processors so one does not remain overloaded while others are idle. The tempting processor-affinity choice can preserve cache locality, but strict affinity may prevent useful redistribution during imbalance.
Q7. An industrial control cluster loses one processing node, but the remaining nodes continue operating with reduced processing capacity. Which system property does this demonstrate?
📖 Explanation: Graceful degradation means a system continues providing reduced service after a component fails. The tempting fault-free option describes perfect reliability, not the ability to remain useful when some capacity is unavailable.
Q8. A research institution uses a computer in which each processor owns separate local memory. Programs exchange information between processors through an interconnection network. Which memory architecture is present?
📖 Explanation: In a distributed-memory architecture, each processor has its own local memory, so processors exchange data through messages or an interconnect. The tempting shared-address-space choice describes a different memory organization across processors.
Q9. A data center installs compact independent server modules inside a common enclosure that supplies shared power, cooling, and network connections. What hardware arrangement is being described?
📖 Explanation: Blade servers package multiple compact server modules in a shared chassis that can provide power, cooling, and networking. The tempting cluster description concerns coordinated computers, not the physical packaging arrangement itself.
Q10. A computer contains a dedicated processor for encryption and another for graphics calculations. What is the primary architectural advantage of these specialized processors?
📖 Explanation: Special-purpose processors can offload tasks such as graphics, encryption, or storage operations from general-purpose CPUs. The tempting replacement claim is wrong because specialized units normally complement rather than eliminate general-purpose processors.
Q11. A database server uses NUMA architecture. Processor P0 accesses memory attached to P0 more quickly than memory attached to P1. Which design consideration follows from this arrangement?
📖 Explanation: NUMA systems provide faster access to a processor's local memory than to memory attached to another processor. The tempting uniform-latency assumption ignores this locality difference, which makes processor and memory placement important.
Q12. Two processors have private caches and access the same shared variable. Processor P0 updates the variable, but P1 may continue reading its previously cached value. Which mechanism addresses this problem?
📖 Explanation: Cache coherence ensures processors do not indefinitely rely on inconsistent cached copies of shared data. The tempting shared-memory assumption is insufficient because separate private caches can each hold an outdated copy of the same memory location.
Q13. A multiprocessor server initially gains throughput when processors are added. Eventually, all processors compete for a shared memory bus that cannot transfer additional data. What limits further performance improvement?
📖 Explanation: A shared bus limits aggregate memory traffic even when additional processors are installed. The tempting linear-scaling assumption ignores contention: once the bus saturates, extra CPUs cannot obtain the memory bandwidth needed to keep executing efficiently.
Q14. A parallel application contains 25% serial instructions and 75% parallel instructions. Four processors execute the parallel portion perfectly. What maximum speedup is predicted by Amdahl's law?
📖 Explanation: Amdahl's law gives speedup as . The denominator is , so speedup is about for this workload. The tempting value four incorrectly assumes the serial quarter also runs in parallel.
Q15. A database process repeatedly accesses data already cached by processor P2. The scheduler frequently migrates it between P2 and P3, increasing cache misses. Which scheduling mechanism could reduce this overhead?
📖 Explanation: Processor affinity keeps a process on a preferred CPU, preserving useful cache contents and reducing migration costs. The tempting unrestricted-migration policy may balance queues, but repeated movement can discard locality and increase cache misses.
Q16. A clustered web service sends periodic heartbeat messages between its active server and standby server. The standby detects that the active server has stopped responding. What is the principal purpose of this mechanism?
📖 Explanation: Heartbeat messages let cluster nodes detect when a peer may have failed, after which a standby node can take over. The tempting shared-storage assumption alone cannot detect failure or coordinate takeover safely.
Q17. An eight-processor database server generates a memory traffic demand of 12 GB/s per processor. Its shared memory bus can supply only 70 GB/s. Ignoring other limitations, what maximum aggregate memory transfer rate can the system sustain?
📖 Explanation: The processors request GB/s, but the shared memory system supplies only 70 GB/s. Therefore aggregate transfers are capped at 70 GB/s; the tempting 96 GB/s ignores the shared bandwidth limit.
Q18. A NUMA database records memory latency of 80 ns for local accesses and 140 ns for remote accesses. If 75% of accesses are local and 25% are remote, what is average access latency?
📖 Explanation: Three quarters of accesses are local and one quarter remote, so average latency is ns. The tempting 110 ns reverses the local and remote proportions under these access conditions.
Q19. A parallel server has twelve independent jobs, each requiring four milliseconds of CPU time. Two equivalent processors execute them with perfect distribution and no overhead. What is the minimum completion time for all jobs?
📖 Explanation: With two processors, twelve equal jobs of four milliseconds require six waves. The makespan is ms, assuming ideal distribution and no overhead; the tempting 48 ms assumes only one processor executes jobs.
Q20. A student estimates that a program with 20% serial instructions and 80% parallel instructions achieves an eightfold speedup on eight processors. Which correction identifies the error and gives the proper result?
📖 Explanation: The flawed step is multiplying speedup directly by eight. Amdahl's law gives , because the serial fifth remains unchanged; the tempting eightfold result assumes no serial work in the program.
Q21. A processor uses a write-through cache. A student claims that writing every modified cache value to main memory automatically guarantees that other processors cannot read stale copies. What is wrong with this reasoning?
📖 Explanation: The flawed step is assuming write-through alone invalidates other private caches. It updates main memory, but another CPU may still hit a stale line; a coherence protocol must invalidate or update that copy.
Q22. A system contains several processors capable of executing general-purpose instructions. A student classifies it as symmetric multiprocessing solely because every processor has similar hardware. However, one processor performs system-wide control and assigns tasks to the others. Which classification is correct?
📖 Explanation: The student's classification is wrong because processor capability does not determine whether a system is symmetric. In asymmetric multiprocessing, one processor has designated control duties; the tempting SMP label ignores this unequal organization.
Q23. Two active cluster nodes access the same database files on shared storage. A network partition prevents them from communicating, and each node assumes the other has failed. Which mechanism most directly prevents both nodes from independently becoming active database writers?
📖 Explanation: The flawed step is treating shared storage as an ownership lock. During a network partition, both nodes might activate; fencing or quorum-based ownership prevents simultaneous writers, while the tempting shared-disk assumption does not.
Q24. A parallel server records throughput against processor count: (1, 100 jobs/s) ; (2, 180 jobs/s) ; (4, 300 jobs/s) ; (8, 420 jobs/s) ; (16, 440 jobs/s). What happens when processors increase from eight to sixteen?
📖 Explanation: Throughput rises from 420 to 440 jobs per second when processors double from eight to sixteen, a gain of only 20. The tempting linear-scaling interpretation ignores the clear plateau at higher processor counts.
Q25. A NUMA server records remote-memory percentage and average access latency: (0, 80 ns) ; (20, 92 ns) ; (40, 104 ns) ; (60, 116 ns) ; (80, 128 ns). What is the average latency when 60% of accesses are remote?
📖 Explanation: At 60% remote accesses, 40% remain local: ns. The tempting 104 ns corresponds to 40% remote accesses, not the 60% stated in the table for this requested point.
Q26. A multiprocessor server records processor count and average memory latency: (1, 70 ns) ; (2, 75 ns) ; (4, 90 ns) ; (8, 130 ns) ; (16, 210 ns). Between which successive processor counts does latency increase the most?
📖 Explanation: Successive increases are 5, 15, 40, and 80 ns, so the largest occurs from eight to sixteen processors. The tempting claim of constant latency ignores the sharp rise as contention grows.
Q27. A storage controller uses DMA to transfer incoming data into shared memory and generates an interrupt when the transfer finishes. The operating system keeps the interrupt handler and its consumer thread near the same processor. Which statement is correct?
📖 Explanation: DMA transfers data into shared memory, but interrupt handling still runs on a CPU. Pinning the device interrupt and its consumer near the same processor can improve cache locality; the tempting claim that DMA removes interrupts is false.
Q28. A two-processor server protects a shared critical section. A programmer disables interrupts on processor P0 and assumes processor P1 cannot enter the same critical section. What is the correct solution?
📖 Explanation: Disabling interrupts affects only the local processor and cannot stop another CPU from entering the same shared critical section. A shared atomic lock is required; the tempting interrupt-only solution fails on multiprocessors.
Q29. A NUMA server has two processor groups, each with nearby memory. A workload is running on P0 but frequently accesses memory attached to P1. The scheduler considers moving it to P1. Which consideration should guide this decision?
📖 Explanation: In NUMA, migration can improve CPU balance but make a process access remote memory more often. Keeping it near its allocated memory preserves locality; the tempting unconditional migration policy may increase total execution time.
Q30. A program takes 100 time units on one processor. Forty percent is serial and 60% is parallel. Four processors reduce parallel execution time by a factor of four, but remote-memory stalls add 25% to that reduced parallel time. What is the resulting speedup?
📖 Explanation: The original time is 100 units: serial work is 40, and parallel work is 60. Four CPUs reduce it to 15; a 25% stall adds 3.75, yielding speedup. The tempting 2.29 ignores stalls.