Results 1 to 2 of 2

Thread: Java threads

  1. #1
    naik_amit is offline Member
    Join Date
    Aug 2010
    Posts
    4
    Rep Power
    0

    Default Java threads

    My Java application running 50 threds in all.. One monitor thread checks for dead threds among these 50 and if there is any it restarts it...

    But this logic was slowing down the application so.. i want to use sleep method to sleep this monitor thred for 30 mins so it shudnt affect performance of other threads.

    using method sleep to make sleep thread for 30 mins will be feasible???
    Last edited by naik_amit; 08-18-2010 at 08:56 PM.

  2. #2
    shuks is offline Member
    Join Date
    Oct 2009
    Posts
    18
    Rep Power
    0

    Default

    thats the only way I know of to make a thread sleep. I dont see why that wouldnt work. GL

Similar Threads

  1. Threads in Java
    By ZeCute in forum New To Java
    Replies: 2
    Last Post: 05-20-2010, 05:06 PM
  2. can you give-me a little hand about java threads?
    By masdrobeda in forum New To Java
    Replies: 3
    Last Post: 11-10-2008, 06:15 PM
  3. How to use Java threads
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-09-2008, 07: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
  •