On The Insider: Britney's Bikini-Clad Top 10
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 5 of 9:
Next »
« Previous
Code with threads which need to synchonize 'often'
will get minimal benefit from chip conmcurrency. What is the benefit to have multiple threads 'active' only to wait to serialize themselves?

The objective of the simultaneous concurrent threading is to have more than one thread producing useful work simultaneously. In the classical multithreaded execution, a thread executes in the processor until it has to stall for possibly 100s of clock cycles (due to a cache miss, due to mispredicted branch, or lack of available functional units, etc.). The stalls are the big enemy of pipelines (especially the 'deep' ones, errrhhhhmmm Pentium 4...) which mean that h/w stays idle without producing useful work for several clock cycles. When the stall is for > 100s of cycles (page fault) the OS switches to another thread. Since stalls and page faults are VERY common events, especially in servers, a lot of h/w remains idle.


The simultaneous multithreading simply allows the context of multiple threads to be 'known' to the processor simultaneously, so that even if one thread stalls, other(s) cam still make positive progress.

It is a good idea but there are some pitfalls: with k active thrads the memory throughput should be AT LEAST k times that of the processor which can have one thread. Another is that the threads better be independent, or you end up serializing execution 'too often'.

Let's see how well Sun can pull this off.....


--m
Posted by: michael_t   Posted on: 10/26/05 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

I want my Niagra!  Roger Ramjet | 10/26/05
Threads/Process  Rokstar83 | 10/26/05
I think  Yensi717 | 10/26/05
But...  Rokstar83 | 10/26/05
Code with threads which need to synchonize 'often'  michael_t | 10/26/05
Would you rather go off-chip to synchronize?  jefferz | 11/05/05
Threads and Processes are different entities  michael_t | 10/26/05
NIAGRA!  An_Axe_to_Grind | 10/26/05
I hope it's a great success. Love the competition.  No_Ax_to_Grind | 10/26/05

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
  • Smart Tech Expert advice on innovations in healthcare and the green technologies that make it happen. Find out more
  • Smart Business Discussion and advice on management issues that revolve around making your world smarter and more useful. More Smart Advice
  • Smart People The best and worst moves in the management and strategy trenches. Learn More