Results 1 to 1 of 1
- 04-09-2012, 01:25 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 6
- Rep Power
- 0
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 01:29 PM.
Similar Threads
-
Exception in thread “main.java,lang.NoSuchMethodError:main
By femily in forum New To JavaReplies: 1Last Post: 11-23-2011, 05:52 AM -
Main Thread not waiting for grand child thread to finish
By prashanthn in forum Threads and SynchronizationReplies: 3Last Post: 06-07-2011, 09:26 AM -
Question about 'main thread' and the thread it creates
By ggyyree in forum Threads and SynchronizationReplies: 11Last Post: 12-10-2010, 07:33 PM -
Trigger main thread method from secondary thread?
By DigitalMan in forum Threads and SynchronizationReplies: 8Last Post: 01-26-2010, 02:13 AM -
data from the main/GUI thread to another runnin thread...
By cornercuttin in forum Threads and SynchronizationReplies: 2Last Post: 04-23-2008, 10:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks