In my experience the windows scheduler is quite good. Remember if you have hyperthreading then 2 threads will be running on a given core.
In general schedulers will try to keep a thread on a particular core if they can (but there are many reasons that they can’t), one reason being that hopping between cores trashes the L1 cache for the thread. There are so many ways for something to get in the way of this happening though that it rarely happens unless you force it by setting affinity and other wizardry.
Cas
Thanks again princec and Riven. I’m the only one in the class to complete the problem. My lecturer actually said that it is not possible to get full cpu usage, the cpu moves it among cores, but I said I’ve seen a thread on the net that showed a program that actually did that. So she asked me to write a program. Writing this program in a computer in the lab has hanged that cpu and we’ve to restart it to get it working again and I won in this case. And today, I got the full marks in the lab session. I’m called by the HOD and our HOD asked me the details and I showed her my GL Tutorial Series. She made some good points from that and I’m going to give a tutorial lecture the next monday in the college.
Thanks again.
Which only means, that if you knew Eintein’s age at the time of his death, you are likely a bad-ass coder.
What do you mean?