When multiple threads invoke Framework.waitForStop(), only one of them gets unblocked. I suppose that Concierge.stop0(boolean) should call notifyAll() instead of just notify() and it would be better to invoke it in finally to make sure that it would be executed always.
When multiple threads invoke
Framework.waitForStop()
, only one of them gets unblocked. I suppose thatConcierge.stop0(boolean)
should callnotifyAll()
instead of justnotify()
and it would be better to invoke it infinally
to make sure that it would be executed always.