DEV Community

Meet Rajesh Gor
Meet Rajesh Gor

Posted on

Concurrency and Parallelism

This is a submission for DEV Computer Science Challenge v24.06.12: One Byte Explainer.

Explainer

Concurrency

Concurrency is like having one person doing multiple household tasks by switching between them. Imagine someone who starts washing dishes, then pauses to vacuum the living room, and then goes back to finish the dishes. They’re doing tasks in small steps, one after the other, to make progress on all tasks without completing one entirely before starting the next.

Parallelism

Parallelism is like having several people each doing different household tasks at the same time. One person vacuums the living room while another washes the dishes and someone else mows the lawn. They’re working simultaneously on different tasks, getting everything done faster.

Top comments (0)