[-] should the stopping process be immediate?
by gidalevi - Friday, 26 December 2008 15:21:09
since the observer is also a thread,
 The time slice can be given to other threads while typing "stop" , and so it could take time for the word "stop" to be read.
And we can reach the scenario where after typing stop in the console, the representatives will still be attending calls until the observer thread doesn't get his time slice
Re: should the stopping process be immediate?
by yoavg - Saturday, 27 December 2008 11:26:30
"Stop"means the system should stop eventually.  Meaning: no more calls enter the system, each rep. finishes at least the call he is currently attending, then does anything else if he has to, and then stops.