Subj : Re: reliability of setting thread priority To : comp.programming.threads From : Joe Seigh Date : Fri Feb 25 2005 08:10 am On 25 Feb 2005 04:41:49 -0800, wrote: > > No real problem, but a Win32 Mutex is about 5x slower than a > criticalsection, and about 15x slower than using atomic exchanges. > (Rough numbers) > > I had a real life case where there was possibly going to be 100s of > these objects used, so speed matters. > > On the other hand, a would consider using a mutex for the portable > version, if anyone thought that the priority setting stuff was > problematic - correctness beats speed (almost) every time... > Spin locks for user threads don't scale well. Your choice and hopefully it's your problem and not ours. -- Joe Seigh .