Thread delay help (threadindex*sleep)



  • I used thread index* sleep to put delay in my thread
    But it's not effective
    If am running 100 thread delay of 30sec-1 min
    Then when my thread 100 complete it's task
    It gonna restart after 100min
    I want it to start after min or
    Minute after last thread start that will be awesome



  • Try: If thread index * sleep > (certain number)
    Make it sleep for a random amount of time (few minutes)


Log in to reply
 

  • 10
  • 2
  • 4
  • 1
  • 9
  • 1
  • 4
  • 5