Comment 6 for bug 1327946

Revision history for this message
Joshua Harlow (harlowja) wrote :

Cool, so then how does one make this check & set atomic?

If two processes read the process from the semaphore id, then one sets it, then the other deletes the one the other process just set and replaces it with a new one (this results in 2 processes thinking they own it). Just something to think about (this is similar to the ABA problem).