Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

[windows] whats going on with preemption ?

4: Adsense

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   

-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

 






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.