Thread: Sleep effecting the entire program or just one thread?

  1. #1
    Registered User
    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
    ‡ †hë Ö†hÈr 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, 06:39 AM
  4. A program thread...
    By Sebastiani in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 05-06-2002, 10:19 PM
  5. Multi-Thread Programming
    By drdroid in forum C++ Programming
    Replies: 6
    Last Post: 04-04-2002, 02:53 PM