← BYTES
Unix IPC·Starter·Ref: 15.1.72

What does it mean for a thread to currently 'hold' or 'own' a lock?

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

a.The thread has permanently deleted the lock
b.Holding a lock means the thread is paused and will never run again
c.Every thread in the program holds every lock simultaneously by default
d.That thread is the one that successfully acquired the lock and has not yet released it -- while held, no other thread may acquire that same lock
A lock being 'held' simply means some specific thread successfully acquired it and hasn't released it yet -- that thread is the current owner, and every other thread attempting to acquire the same lock must wait until it's released.

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#BYTES15172#UnixIPC