• Advertisement
Sign in to follow this  

[windows] whats going on with preemption ?

This topic is 1622 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

 

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement