Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-concurrency-and-parallelism #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions 2024/concurrency-parallelism/article.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Concurrency and Parallelism

Think of a café and customers are ordering coffee. You have several tasks to handle: grinding coffee beans, brewing espresso, and steaming milk. Let’s see how you manage these tasks:

- Concurrency is when you overlap multiple things at a time. You start grinding the beans, pause to brew the espresso, then steam the milk, and finally return to grind more beans. You’re working on multiple tasks, but only one at a time, switching between them to get everything done.

- Parallelism is like having a team of baristas. One grinds the coffee, another brews the espresso, and a third steams the milk—all happening at the same time.

![Placeholder](illustration.svg).

Loading