Re: atomic statements in multithreading

2012-11-26 Thread Robert Klemme
On Mon, Nov 26, 2012 at 1:15 PM, ajay paswan wrote: > Robert Klemme wrote in post #1086457: > >> Why do you want to do that? That will cripple throughput more than >> necessary. > To solve: http://www.ruby-forum.com/topic/4408352#new I don't see how your solution is necessary to solve that. Ch

Re: atomic statements in multithreading

2012-11-26 Thread Robert Klemme
On Mon, Nov 26, 2012 at 12:03 PM, ajay paswan wrote: > now I want to make step 2 and step 3 an atomic statement, it means when > one thread goes to statement 2, every other thread should stop and run > only when that particular thread completes step 3. Is it possible? How? > > note mutex is not th