Unit 6 · The Internet & Computing Systems · Lesson 6.9

Parallel Computing

Four people sorting a deck should be four times faster than one. They never are. Today you find out what’s slowing them down — and it’s not the people.

Big Idea 4 — Computer Systems & NetworksCED 4.3

Before this lesson

No reading — this page is the reading. Bring your deck-sort times from the hook.

1

Where We Are

People→ Bits→ Programs→ Internet→ Security→ Big Data→ Impact

Internet region, systems side. So far the internet moved data between computers. Now: many processors working on one problem at the same time.

2

The Hook

One sorter vs. four. One student sorts a shuffled deck by suit and number. Time it. Now four students: deal the deck out, each sorts their pile, then combine the piles. Time it.

Faster — but not four times faster. Where did the time go?

3

The Idea

Sequential computing: operations are done in order, one at a time. Parallel computing: the program is broken into smaller parts, and some of them run at the same time on different processors.

Some work splits cleanly — four people can each sort a pile at once. Some refuses to split. Dealing the deck out has to happen before anyone can sort, and combining the piles has to happen after. Those are the sequential portion: steps that must happen in order, no matter how many helpers you have.

The sequential portion is the ceiling. Add more sorters and the sorting part shrinks, but the dealing and combining don’t. Eventually almost all the time is the part you can’t split — and more helpers barely help.

Test for whether two steps can run in parallel: does one need the other’s result? If not, they’re independent and can run at once. If so, they’re sequential.

4

Try It — Split It or Not?

Part 1. Can the work be done in parallel, or must it be sequential?

Part 2. The deck sort: dealing and combining take 30 seconds no matter what; the sorting itself takes 120 seconds for one person and splits evenly. Add sorters.

sorters:
5

Vocabulary

sequential computing Internet
A computational model in which operations are performed in order, one at a time.
parallel computing Internet
A computational model where the program is broken into multiple smaller sequential operations, some of which are performed simultaneously.
sequential portion Internet
The part of a task that must run in order and can’t be split. It limits how much faster parallel computing can be.
parallel portion Internet
The part of a task that can be split into independent pieces and run at the same time.
6

Check

Five questions. Ask “does this step need that one’s result?”

0 of 5 answered
7

Impact Check

Your phone is already parallel

Most phones and laptops have several processor cores, plus a graphics processor with hundreds or thousands of tiny cores built for parallel work. That’s why they can play a video, download a file, and run a game at once — and why training modern AI, which is mostly parallel arithmetic, became possible.

8

Connections

Came from 4.6 — counting steps. Parallel time is still counted — just per processor.
Came from 3.8 — a loop over a list is often parallel-friendly: each item’s work is independent.
Next in 6.10 — the number: speedup, calculated. It’s the only arithmetic in Big Idea 4.
Returns in Unit 8 — AI training runs on huge numbers of parallel processors.
← 6.8 Bandwidth and Latency