Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I always understood async/await as expression of concurrency and threads as expression of parallelism. Which aren't the same thing.

Concurrency breaks computation into chunks that can be interleaved even on a single CPU advancing computation concurrently overall but not necessarily physically at the same time for each chunk.

Parallelism on the other hand breaks computation into chunks that literally can run in parallel on different CPUs.

You can even combine both in some fashion.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: