Results 1 to 1 of 1
  1. #1
    jaho is offline Member
    Join Date
    Feb 2012
    Posts
    6
    Rep Power
    0

    Default 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

  1. Replies: 1
    Last Post: 11-23-2011, 05:52 AM
  2. Main Thread not waiting for grand child thread to finish
    By prashanthn in forum Threads and Synchronization
    Replies: 3
    Last Post: 06-07-2011, 09:26 AM
  3. Question about 'main thread' and the thread it creates
    By ggyyree in forum Threads and Synchronization
    Replies: 11
    Last Post: 12-10-2010, 07:33 PM
  4. Trigger main thread method from secondary thread?
    By DigitalMan in forum Threads and Synchronization
    Replies: 8
    Last Post: 01-26-2010, 02:13 AM
  5. data from the main/GUI thread to another runnin thread...
    By cornercuttin in forum Threads and Synchronization
    Replies: 2
    Last Post: 04-23-2008, 10:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •