Lesson 2 of 3 · Parallel work and shared data transfer
Schedule shared image I/O
20 minute lesson · 3 checks along the way
Your goal for this lessonConstruct feasible read–compute–write timelines and distinguish processor load balance from a shared-channel limit.
In this lesson 4 sections · 3 checks
Read & understand
Declare the resources before timing the work
X-SAT research explored processing image strips in parallel. A 2012 article identifies flight-ready parallel processing hardware and describes twenty nodes with four FPGA blocks. Its footnote calls an earlier two-FPGA description an alternative structure. The article’s development and emulation measurements should not be read as in-orbit throughput. Here the hardware motivation leads to an original scheduling problem, with invented durations and no claim about the flight scheduler.
Four independent jobs A, B, C and D require compute times of 6, 2, 6 and 2 seconds. One shared I/O server performs every input read and output write; no two I/O stages overlap. All reads execute first, in alphabetical order. Computation can overlap I/O. Buffers hold all inputs and results, and a processor is released when computation ends rather than when its result is written. Each stage runs without interruption.
Read & understand
Build a complete two-processor timeline
Initially every read and write takes one second. Reads occupy A:0–1, B:1–2, C:2–3 and D:3–4. Dynamic FIFO dispatch means the next waiting, read-complete job uses the earliest available processor; ties use the lower processor number. With two processors, A computes from 1–7 on processor 1. B runs 2–4 on processor 2, followed there by C from 4–10. D waits until processor 1 is free and runs 7–9.
After all reads, writes use increasing compute-completion order, with alphabetical ties. B writes 4–5, A writes 7–8, D writes 9–10 and C writes 10–11. The channel is idle during 5–7 and 8–9 because the next result is not ready. The makespan, from the first read to the final write, is 11 seconds. Adding all compute durations would miss their overlap; ending the clock at the last computation would omit its output transfer.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Separate assignment from processor count
Now fix round-robin assignment: A and C use processor 1, B and D processor 2, each starting as soon as its input and assigned processor permit. The first processor computes A:1–7 and C:7–13; the second computes B:2–4 and D:4–6. Writes become B:4–5, D:6–7, A:7–8 and C:13–14. Completion is 14 seconds because the long jobs share one processor. The 2002 study found round-robin best for its simulated workload; our different, deliberately uneven jobs do not contradict that result.
One processor takes 18 seconds under these rules. Four processors with dynamic dispatch take 10 seconds: the last computation is C:3–9, followed by its write. Thus speedup relative to one processor is 18/11≈1.636 for two and 18/10=1.8 for four, not the processor count itself. The channel must perform eight one-second stages, giving an eight-second lower bound. That bound alone is not a feasible schedule: input availability and computation can force idle periods.
Schedule computation around shared transfers
Original read-first model: independent jobs, separate sufficient input/output buffers, nonpreemptive FIFO dispatch and output order by completion time. The shared read/write channel never performs two transfers at once.
Open full-size diagram in a new tab: Schedule computation around shared transfersCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Expose the shared-channel bottleneck
Change only every read and write to two seconds. Reads now occupy 0–8. With two processors and dynamic FIFO, computations are A:2–8, B:4–6, C:6–12 and D:8–10. Writes then fill B:8–10, A:10–12, D:12–14 and C:14–16. Both the fixed two-processor assignment and the four-processor policy also finish at 16 seconds. A write schedule that overlaps B:8–10 with A:9–11 would be invalid despite having enough processors.
Here eight mandatory I/O stages require 8×2=16 seconds, and the feasible schedule attains that bound. More processors cannot reduce this makespan while the same shared resource, durations and read-first rule remain fixed. Faster transfers or a different architecture could change the problem. Smaller buffers, communication between strips, failures and contention-induced slowdowns could also change it. A useful performance claim must state these assumptions, then show a timeline that satisfies every resource and dependency.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: Application specific compression for mini-satellites with limited downlink capacityStrip processing and scheduling under the study’s workload.
- Read: Virtualized Development and Testing for Embedded Cluster ComputingSection 2.2, footnote 2 and printed pages 163–164 distinguish the hardware description, an alternative earlier structure and development/emulation results.