Skip to interview prep
Apexed

36. What is the difference between concurrency and parallelism, and how does async/await help?

MediumOS, networking & concurrency

Technical
Show model answer

Concurrency means dealing with many tasks over overlapping time periods; parallelism means literally running them at the same instant on multiple cores.

async/await lets a single thread start an I/O operation, yield while waiting, and resume later, giving high concurrency for I/O-bound work without blocking. CPU-bound work still needs parallel workers or processes.

What is the difference between concurrency and parallelism, and how does async/await help — Software engineering interview question — Apexed