What if an application could schedule itself? or at least a thread..
kindof like
Code: Select all
...
{
StopAndScheduleThreadNextFor(1000);
}
This way there wouldn't just be an empty wait loop for 1000ms...the OS could give away the processing time to others..
This would be especially useful in sound drivers..imagine it, you put all the sound bytes into the DMA buffer, call this with something like 750ms or something(forgot how much time normal 44k time is..), copy the next chunk of sound into DMA, and repeat...just-in-time DMA..