Sleep effecting the entire program or just one thread?

This is a discussion on Sleep effecting the entire program or just one thread? within the C++ Programming forums, part of the General Programming Boards category; If i have an application with several threads running, if one of them executes a Sleep(1000); will that cause the ...

  1. #1
    That Creepy Network Guy DeepBlackMagic's Avatar
    Join Date
    Feb 2003
    Posts
    265

    Sleep effecting the entire program or just one thread?

    If i have an application with several threads running, if one of them executes a Sleep(1000); will that cause the entire program to sleep or just the executing thread? This is standard windows threading.

  2. #2
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    just the thread you call it in.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 02-26-2009, 11:48 PM
  2. Multi Thread Program Problem
    By ZNez in forum C Programming
    Replies: 1
    Last Post: 01-03-2009, 11:10 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  4. A program thread...
    By Sebastiani in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 05-06-2002, 11:19 PM
  5. Multi-Thread Programming
    By drdroid in forum C++ Programming
    Replies: 6
    Last Post: 04-04-2002, 02:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21