Monday, 19 August 2013

forced preemption on windows (occurs or not here)

forced preemption on windows (occurs or not here)

Sorry for my weak english, by preemption I mean forced context (process)
switch applied to my process.
My question is:
If I wrote and run my own program game in such way that it is 20
millisecond period work, then 5 millisecond sleep, and then windows pump
(peek message/dispatch message) in loop again and again - Is it ever
preempted by force in windows or no, this preemption doeas not occur ?
I suppose that this preemption would occur if i would not volountairy give
control back to system by sleep or peek/dispatch in by larger amount of
time - but here it will occur or no?
tnx for the answer

No comments:

Post a Comment