Juan Lang juan.lang@gmail.com writes:
Is this better? This trades a single call to sched_getaffinity per process to one every time the process affinity is queried. This seems safer, since a non-Wine process can also change a process's affinity, but it can have higher overhead.
Yes, that's better. But AFAICT sched_get/setaffinity applies to a single thread, not to the whole process.