Results 1 to 1 of 1
- 04-09-2012, 02:25 PM #1Member
- Join Date
- Feb 2012
- Rep Power
Help with another thread suspending the main thread ?
I have two java threads, one for my game and one for checking that there is allways atleast a 20 % sleep on this main game thread.
My game thread holds all sleeps i need, I still want to create this second thread that is just for sure suspending my main game thread.
How often it is ok to suspend and resume the main game thread ?
I currently have a 10 ms suspend and then 40 ms resume.
Last edited by jaho; 04-09-2012 at 02:29 PM.
- By femily in forum New To JavaReplies: 1Last Post: 11-23-2011, 06:52 AM
- By prashanthn in forum Threads and SynchronizationReplies: 3Last Post: 06-07-2011, 10:26 AM
- By ggyyree in forum Threads and SynchronizationReplies: 11Last Post: 12-10-2010, 08:33 PM
- By DigitalMan in forum Threads and SynchronizationReplies: 8Last Post: 01-26-2010, 03:13 AM
- By cornercuttin in forum Threads and SynchronizationReplies: 2Last Post: 04-23-2008, 11:30 PM