DEV Community

Wesley Bertipaglia
Wesley Bertipaglia Subscriber

Posted on Originally published at wesleybertipaglia.com

Threads & Concurrency Explained

Hey dev.to 👋

Post 3/8 of my Operating Systems Explained series is out.

This one is about threads and concurrency: threads versus processes, shared memory and race conditions, mutexes and semaphores, and deadlock with its four conditions.

Processes isolate you from each other by default. Threads offer no protection at all — they hand you speed and easy communication, and charge you with correctness.

If you've ever written balance = balance + 1 and wondered why the total came out wrong, this post explains it.

Read here: https://www.wesleybertipaglia.com/blog/ppmfmhcv

Top comments (0)