Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] STM (was: Re: work times & accommodation @tokyo)



Attila Kinali writes:

 > I could see a couple of reasons why STM cannot work the first
 > time i read about it. So this argument "why shouldn't it" is
 > pretty much void.
 > 
 > As an example, imagine two tasks doing some work on exactly the
 > same data set in a loop, over and over again. Task B takes longer
 > than task A to finish its work.

The Doctor says, "put down the hammer".  Of course you use some kind
of queue in this case.

But no matter what you do, you're not going to get much better
performance than if you combine the tasks in the same loop instead of
running them in separate threads/processes.



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links