- Jun 10, 2004
- 219
- 0
- 0
I've got a question regarding Hyperthreading and task scheduling for 2 CPU intensive tasks. Let's say you've got 1 HT-enabled CPU, and one of the tasks has a higher priority than the other. Without HT, the lower priority one would very rarely be allowed to run, since almost all of the free cycles should be going to the process with a higher priority. However, since a HT-enabled CPU causes the OS to think it has two CPUs to work with, it could schedule all the high-priority interactive jobs and the lower-priority CPU bound job on one "CPU," and the higher-priority CPU-bound job on the other "CPU." (I realize this is a simplification, but it does approximate what could happen.) Since there's really only 1 CPU, could this effectively cause the lower-priority job to preempt the higher-priority one, causing it not to get scheduled on the one real CPU as often?
(edited for spelling)
(edited for spelling)
