racuna1/ser334-public

Unit 8: Sample Problems: Improve Q3

tblisonb opened this issue · 0 comments

The current question doesn't really protect the resource properly as multiple threads can still access the same data at the same time. Either the code should be changed to use semaphores to protect a resource properly or the question should be reworked to explain the pitfalls of using semaphores.