From 973766f284f6d2cc44954ca50b1a3a0241a62965 Mon Sep 17 00:00:00 2001 From: ArberHyseni Date: Thu, 28 Nov 2024 09:52:29 +0100 Subject: [PATCH 1/2] update article - feedback 2b --- 2024/concurrency-parallelism/article.md | 10 ++++++++++ 2024/concurrency-parallelism/illustration.svg | 1 + 2 files changed, 11 insertions(+) create mode 100644 2024/concurrency-parallelism/article.md create mode 100644 2024/concurrency-parallelism/illustration.svg diff --git a/2024/concurrency-parallelism/article.md b/2024/concurrency-parallelism/article.md new file mode 100644 index 00000000..b5a4b4fa --- /dev/null +++ b/2024/concurrency-parallelism/article.md @@ -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). + diff --git a/2024/concurrency-parallelism/illustration.svg b/2024/concurrency-parallelism/illustration.svg new file mode 100644 index 00000000..ceedc3fb --- /dev/null +++ b/2024/concurrency-parallelism/illustration.svg @@ -0,0 +1 @@ + \ No newline at end of file From bd598a45003287302754179128baf9802f430e17 Mon Sep 17 00:00:00 2001 From: ArberHyseni Date: Mon, 2 Dec 2024 16:48:51 +0100 Subject: [PATCH 2/2] refactor --- 2024/concurrency-parallelism/illustration.svg | 126 +++++++++++++++++- 1 file changed, 125 insertions(+), 1 deletion(-) diff --git a/2024/concurrency-parallelism/illustration.svg b/2024/concurrency-parallelism/illustration.svg index ceedc3fb..6dda3a84 100644 --- a/2024/concurrency-parallelism/illustration.svg +++ b/2024/concurrency-parallelism/illustration.svg @@ -1 +1,125 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + generated by vectorizer.io + + + \ No newline at end of file