Subj : Re: threads do not get cpa To : comp.programming.threads From : Joe Seigh Date : Sun Aug 07 2005 08:02 am azb123@planet.nl wrote: > Hello, > I've tried the code posted below on an SGI Origin (16 cpus) and a SGI > Altix (32 cpus). The program runs and gives the expected results, but > it always gets less cpus than active threads (on an otherwise empty > machine). > > If three threads are requested, top shows about 200% activity, if 6 > threads are requested, the activity goes up to 400%. I do not > understand why the activity reported by top is less than the number of > active threads. I would expect top reporting an activity of 300% for > three active threads. > > BTW, I have exeprimented with changing the thread's scope and > scheduling policy, but could not really change the above behaviour. > > Any ideas what is happening? > Try pthread_setconcurrency() and see if that has any effect. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .