Jump to content
  • Advertisement
Sign in to follow this  

[windows] whats going on with preemption ?

This topic is 2166 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!