Subj : Re: Challenge: Multithreading & Synchronization To : comp.programming.threads From : Uenal Mutlu Date : Wed May 18 2005 03:44 pm "Oliver Battenfeld" wrote > Uenal Mutlu wrote: > > > (some call this "thread synchonization"): > > yes. And with good reason. Why don't you? Because it's wrong. There is no need to synchronize threads. Access to shared objects have to be synchronized, not "threads synchronized". > > Your task is to make the class thread-safe by adding some synchronization > > objects and/or methods into appopriate locations of the class or outside > > the class. > > Familiarize yourself with the concept of 'monitors', many of the more > recently developed languages (or frameworks actually) have a built-in > implementation. Have you made own experience with them? Tell me more. How would you use them for this task? > > The given code skelleton uses C++, but you can use any pseudo-code. > > That's a very generous offer. I accept Paypal, credit cards and wire > transfer :-) Solve this first, if you can :-), and then we'll see... :-) .