Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


[windows] whats going on with preemption ?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 fir   Members   -  Reputation: -460

Like
0Likes
Like

Posted 14 August 2013 - 02:46 AM

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

 



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS