News for hackers. Stuff that matters.
Re:Is the Toilet Free? by nkozyra on Monday April 21, 2014 @12:18PM (#7621821)
Prone to race conditions, unfortunately. What's more frustrating than seeing Yes and then finding the door closing in front of you.
Re:Is the Toilet Free? by Yhippa on Monday April 21, 2014 @12:23PM (#7621846)
Maybe they could add a reservation queue to the bathroom as new functionality. That would probably be unnecessary blocking if people abandon their place in line.
Re:Is the Toilet Free? by nkozyra on Monday April 21, 2014 @02:08PM (#7622591)
Maybe the bathroom lock could literally be a mutex.
Re:Is the Toilet Free? by NAFV_P on Monday April 21, 2014 @01:14PM (#7622219)
> Maybe they could add a reservation queue to the bathroom as new functionality.

The FIFO system does not take urgency into account. When making a query, it would be good to give an urgency rating on a scale of 0 to some_number.

Re:Is the Toilet Free? by stevewilber on Monday April 21, 2014 @01:07PM (#7622161)
Or try to predict availability based on recent queries. If there is only one stall open and someone checked its status 30s ago, respond that "maybe" a stall is free.
Re:Is the Toilet Free? by skelsey on Monday April 21, 2014 @03:02PM (#7622945)
A queue would only work if everyone used this system. Unfortunately, you will always have visitors or people who don't want to participate.