If I do everything without threads, will the other threads just be idling Or will work be distributed to them automatically
-Nick
XNA Game Studio Express
Peter D. wrote:
To use the threads you simply need to set a thread processor affinity. this does nothing on the PC
Is this true on multi core PC cpus
In windows, the operating system does the allocation for you based on cpu usage. You can set the affinity but, it will not determine which processor you run on. On the 360 however, the affinity is needed otherwise the 360 will not allocate your thread to a seperate processor at all.
The 360 is designed to do multithreading for games and so the Microsoft guys needed to ensure that the cpu cores could be best used by developers hence thread affinity is actually taken into account when allocating resources.
In the world of windows, the operating system decides resource allocation and so is free to ignore your processor requests based on system load at the time the request was issued.