← BYTES
Unix IPC·Starter·Ref: 15.1.70

What does it mean for an operation to be 'atomic' in the context of concurrent programming?

Have a question about this video? Mention reference 15.1.70 when you contact us.

a.The operation involves splitting data into very small pieces
b.The operation completes as a single, indivisible step from every other thread's point of view -- no other thread can ever observe it half-finished
c.The operation can only be performed on nuclear-powered hardware
d.The operation always takes exactly one CPU cycle to complete, on every architecture
Atomicity means an operation is indivisible from the perspective of every other thread -- it either hasn't happened yet, or has fully happened; there is no in-between state any other thread could ever observe, which is exactly the property synchronization primitives are built to provide for larger pieces of code.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES15170#UnixIPC