Logo

dev-resources.site

for different kinds of informations.

Concurrency vs Parallelism

Published at
9/30/2024
Categories
concurrency
parallelism
backend
webdev
Author
niteshoak
Author
9 person written this
niteshoak
open
Concurrency vs Parallelism

Concurrency:

Think of concurrency like juggling different tasks, but you're only actually handling one at a time. It's all about managing multiple things efficiently.

Example:
Imagine a student doing homework. They have math, science, and English assignments. Instead of finishing one completely before starting the next, they might:

  • Work on math for 10 minutes,
  • Take a break and switch to science for 10 minutes,
  • Then switch to English for 10 minutes.

You're making progress on all three subjects, but you're not literally doing them at the exact same moment. It's like you're bouncing between tasks, keeping them all moving forward.

Parallelism:

Now, parallelism is when you're actually doing multiple things at the exact same time. This usually needs multiple people or machines to pull off.

Example:
Imagine you and your friends are working on a group project:

  • You're writing the intro
  • Your buddy's designing a cool poster
  • Another friend is putting together a presentation
  • And someone else is digging up research

In this case, you're all working on different parts of the project at the same exact moment. That's parallelism in action – multiple tasks happening simultaneously.

concurrency Article's
30 articles in total
Favicon
Concurrency in C++: Mitigating Risks
Favicon
Poor man's parallel in Bash
Favicon
πŸš€ New Article Alert: Master sync.Pool in Golang! πŸš€
Favicon
Overview of Lock API in java
Favicon
πŸš€ Mastering Concurrency in Go: A Deep Dive into sync.WaitGroup and sync.Cond
Favicon
πŸš€ Golang Goroutines: When Concurrency Meets Comedy! 🎭
Favicon
Concurrency vs Parallelism in Computing
Favicon
πŸš€ Demystifying Golang Concurrency: Channels and SelectπŸš€
Favicon
Java Multithreading: Concurrency and Parallelism
Favicon
Asynchronous Python
Favicon
Why Modern Programming Isn't Always Asynchronous (And That's Okay, Mostly)
Favicon
Zero-Cost Abstractions in Rust: Asynchronous Programming Without Breaking a Sweat
Favicon
Navigating Concurrency for Large-Scale Systems
Favicon
Concurrency and Consistency: Juggling Multiple Users Without Missing a Beat
Favicon
Concurrency & Fault-tolerant In Distributed Systems
Favicon
Locking Mechanisms in High-Load Systems
Favicon
Process-based parallel execution of plain Minitest tests
Favicon
Concurrency in Python with Threading and Multiprocessing
Favicon
How to Use Goroutines for Concurrent Processing in Go
Favicon
Concurrency vs Parallelism
Favicon
Understanding Threading and Multiprocessing in Python: A Comprehensive Guide
Favicon
Writing Multi-threaded Applications in Java: A Comprehensive Guide
Favicon
🌐 Get started: MongoDB Change streams, Concurrency, backup snapshot & checkpoint, Compound Wildcard Indexes
Favicon
🌐 ε…₯ι—¨: MongoDB ζ›΄ζ”Ήζ΅γ€εΉΆε‘γ€ε€‡δ»½εΏ«η…§ε’Œζ£€ζŸ₯η‚Ήγ€ε€εˆι€šι…η¬¦η΄’εΌ•
Favicon
Total Madness #2: Async Locks
Favicon
Understanding Concurrency in React: A Guide to Smoother and More Responsive UIs
Favicon
Clear and Concise Concurrency with Coroutines in Kotlin
Favicon
Producer/Consumer (Produtor/Consumidor)
Favicon
Race Condition (Condição de Corrida)
Favicon
PHP HyperF -> Overlapping and Concurrency

Featured ones: