From: Tassilo Horn Date: 2004-10-09T01:44:54+09:00 Subject: Re: Problems with my first multithreaded Rupy programm Markus writes: > Try taking the cv.broadcast and the Thread.stop out of the mutex > syncronize block (e.g., let go before you tell the others to start). But then the waiter puts two item on the table but no drinker takes them away. The output is then: ,---- | WAITER: Looking at the table! | WAITER: Oh, nothing on the table! | WAITER: Putting 0 and 1 on the table. | WAITER: Looking at the table! | WAITER: Why did you call me??? | WAITER: Looking at the table! | WAITER: Why did you call me??? | ... `---- But it should work like this: The waiter puts two items on the table and falls asleep. The drinker who needs those two items wakes up, consumes them, drinks his tea and wakes up the waiter. The waiter puts two new items on the table. The drinker who needs those two items wakes up, ... I hope I didn't understand you wrong. Regards, Tassilo