Sleep process

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JoderCoder
    New Member
    • Feb 2008
    • 18

    Sleep process

    When you intruduce a sleep for a certain amount of time, will the whole code sleep during that time? or does it depend on the implementation? could we chose that other threads to be executed even though we introduce a sleep in some other thread?

    thanks much!
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Sleep is just a function call. That means only the thread that calls this function sleeps.

    Comment

    Working...