17 May
2010
17 May
'10
9:36 p.m.
Antoine Pitrou
On Sun, 16 May 2010 15:13:44 PDT Bill Janssen
wrote: So the patch to the threading code would presumably, for those OSs where the capability exists, try to put all created threads in the same affinity set.
This is not really a good idea. There's some code which releases the GIL, precisely so that you can run several threads (computations) at once.
Could the macro that releases the GIL also release the thread affinity? And the macro that acquires it again set the affinity tag back again? Bill