-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hey,
Thanks for this organized collection of notes.
Was reading through Threads and concurrency Section
The solution to Readers-Writers it says is:
if ((read_count == 0) & (read_count == 0))
R okay, W okay
if (read_count > 0)
R okay
if (read_count == 1)
R not-okay, W not-okay
I think it should be instead
if ((read_count == 0) & (write_count == 0))
R okay, W okay
if (read_count > 0)
R okay
if (write_count == 1)
R not-okay, W not-okay
Metadata
Metadata
Assignees
Labels
No labels