📝 Computation speedup in distributed system (8 MCQs)
Accelerating Computation Through Multiple Machines
Computation speedup in a distributed system results from dividing a computational workload among networked processors or computers. Independent or loosely coupled tasks execute concurrently, and their partial results are combined to produce the final answer. Middleware, message-passing libraries, and distributed schedulers coordinate task assignment and completion while accounting for differences in processor capacity and network communication time.
Why Sequential Processing Limits Large Workloads
A single processor must execute all instructions sequentially unless it uses internal parallelism. Large scientific, analytical, or simulation workloads may exceed practical completion-time requirements. Distributed execution can reduce elapsed time, but only when sufficient portions of the computation can operate independently and communication costs remain manageable.
Partitioning Tasks and Combining Partial Results
The application divides work into tasks or data partitions and assigns them to available nodes. Each node processes its assigned portion and communicates intermediate results when required. A coordinator or collective operation combines the results. Dependencies, synchronisation points, and data transfers determine how much parallel execution is possible.
Example of Parallel Matrix Processing
A matrix multiplication workload is divided into four independent row groups and assigned to four computers. Each computer calculates its assigned rows using the required input data. A coordinator combines the completed sections into one matrix. Execution may be faster than a single-machine calculation if transfer and coordination costs are sufficiently small.
Speedup Limits and Communication Overhead
Speedup is often expressed as sequential execution time divided by parallel execution time. Amdahl's law shows that the sequential fraction limits maximum improvement, even with many processors. Network latency, data transfer, load imbalance, and synchronisation further reduce gains, so adding nodes does not guarantee proportional acceleration.
Misconceptions About Distributed Computation
'Four computers always provide four times the speed' ignores sequential work and communication. 'Every task can be divided equally' overlooks dependencies and uneven workloads. 'Combining results requires no processing time' is false because aggregation and synchronisation consume resources.
Exam Focus: Speedup and Parallel Efficiency
Calculate speedup using , where is sequential time and is parallel time. Distinguish speedup from efficiency, , for processors. Questions may apply Amdahl's law or ask how communication, serial fractions, and load imbalance limit distributed computation.
Key Terms of Distributed Computation
- Speedup - Ratio of sequential to parallel time.
- Parallelism - Execution of tasks concurrently.
- Partitioning - Dividing work among nodes.
- Efficiency - Speedup divided by processor count.
- Amdahl's law - Relates speedup to serial work.
📝 All Computation speedup in distributed system MCQs
Q1. What is the term used to describe the reduction in execution time when a task is divided among multiple processors in a distributed system?
📖 Explanation: Computation speedup refers to the decrease in total execution time achieved by distributing a workload across several processors. It is distinct from load balancing, which merely spreads work evenly, and from fault tolerance or latency hiding, which address reliability and response time, respectively. By parallelizing work, the overall job finishes faster, which is the core idea of speedup. Therefore the correct answer is Computation speedup, while the other options describe different system properties.
Q2. Why does adding more nodes to a distributed system not always result in proportional computation speedup?
📖 Explanation: The primary limiting factor is the communication overhead that grows as more nodes exchange data. Even if each node can process its share quickly, the time spent sending and receiving messages can offset the gains, preventing a linear speedup. Options about faster processors, more memory, or better security describe unrelated improvements and therefore do not explain the slowdown. Hence the correct choice highlights communication overhead as the key constraint.
Q3. According to Amdahl's law, if 30% of a program cannot be parallelized, what is the maximum theoretical speedup achievable regardless of the number of nodes?
📖 Explanation: Amdahl's law states that the overall speedup S = 1 / ( (1‑p) + p/N ), where p is the parallelizable fraction and N is the number of nodes. When N approaches infinity, the term p/N becomes zero, leaving S = 1 / (1‑p). With 30% non‑parallelizable (1‑p = 0.3), the maximum speedup is 1 / 0.3 = 3.33. The other numbers arise from incorrect calculations or ignoring the serial portion, so the correct answer is 3.33.
Q4. A task takes 1000 seconds on a single node. If 80% of the work can be parallelized and communication adds 0.1 seconds per node, what is the total execution time using 5 nodes?
📖 Explanation: First separate the work: the sequential part is 20% × 1000 = 200 s, and the parallel part is 80% × 1000 = 800 s. Dividing the parallel portion among 5 nodes yields 800 / 5 = 160 s. Adding the sequential 200 s gives 360 s, then include the communication overhead of 0.1 s × 5 = 0.5 s, resulting in 360.5 s total. The other options mis‑add or mis‑divide the components, making B the correct choice.
Q5. A company wants at least a 4× speedup for a job where 70% of the work is parallelizable. Which statement is correct?
📖 Explanation: Using Amdahl's law, the speedup S = 1 / (0.3 + 0.7/N). To reach S ≥ 4, the denominator must be ≤0.25, which would require 0.7/N ≤ ‑0.05—an impossible condition because the term cannot be negative. Therefore no amount of nodes can provide a 4× speedup when 30% of the program is serial. The other options assume feasible node counts, which contradict the mathematical limit, so the correct answer states the goal cannot be met.
Q6. Given total time with s, , and s, which number of nodes minimizes execution time?
📖 Explanation: To find the optimum, differentiate the expression with respect to : . Solving gives . Substituting back yields a total time of about 136.7 s, lower than for any other listed option. The other choices either underestimate or greatly overestimate the optimal node count, making 216 nodes the correct answer.
Q7. Which factor most directly limits the scalability of computation speedup in a distributed system?
📖 Explanation: The serial fraction—code that must run sequentially—sets a hard ceiling on speedup according to Amdahl's law, because no amount of additional processors can accelerate that part. While network bandwidth, CPU count, and disk I/O affect performance, they are secondary to the inherent sequential portion, which directly caps how much total execution time can be reduced. Thus the serial fraction is the primary limiting factor.
Q8. A task that takes 200 seconds on one machine is 60% parallelizable. Using two identical nodes with negligible communication overhead, what is the expected execution time?
📖 Explanation: Separate the workload: 40% remains sequential (0.4 × 200 = 80 s) and 60% is parallel (0.6 × 200 = 120 s). The parallel portion is split evenly between two nodes, giving 120 / 2 = 60 s. Adding the sequential 80 s results in a total of 140 seconds. The other options either ignore the parallel division or mis‑calculate the sequential share, so 140 seconds is the correct execution time.