13 Jul
2012
13 Jul
'12
8:39 a.m.
Hi All,
I found such problem:
N+1 (where N is number of cpu cores) processes with interprocess syncing use 100% cpu on 32 bit Windows system.
Cause of bug:
https://svn.boost.org/trac/boost/changeset/74110
void sched_yield()
-{ Sleep(1); }
+{
+ if(!SwitchToThread()){
+ Sleep(1);
+ }
Test case:
#include