Thread: threads, what are they?

  1. #1
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Question threads, what are they?

    What are threads used for? Are they .dll files?
    int a; don't make a program without it.

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Well...no. That is completely wrong. A thread is an abstract idea. A thread is share of CPU time. For example. Lets say the window in the foreground is thread0 and the first window behind it is thread1. Both thread0 and thread1 are given a certain amount of time to do their thing so as to create the illusion of simultaneous operation.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    70
    No man....thread has nothing related with .dlls.

    Threads means different paths of execution managed by operating system. For example under Windows you can open one PaintBrush and one MSWord application simulteniously as well as you can browse at the same time through Internet explorer. While working under DOS you can do only one task at a time. That is the power of multithreading.
    Chintan R Naik

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> What are threads used for?

    Did you have a specific problem?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    And then there was Darla...
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  6. #6
    Registered User
    Join Date
    Feb 2003
    Posts
    76
    The Win32 scheduler assigns each program a tiny slice (usually a few milliseconds) of processor time. Busier programs, of course, are expected to use more processor time. The schedular does this so quickly that the illusion of concurrently running programs is possible on a single processor. However, Windows NT can easily adapt this model to multiprocessor machines as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 10-17-2008, 11:28 AM
  2. Yet another n00b in pthreads ...
    By dimis in forum C++ Programming
    Replies: 14
    Last Post: 04-07-2008, 12:43 AM
  3. Classes and Threads
    By Halloko in forum Windows Programming
    Replies: 9
    Last Post: 10-23-2005, 05:27 AM
  4. problem with win32 threads
    By pdmarshall in forum C++ Programming
    Replies: 6
    Last Post: 07-29-2004, 02:39 PM
  5. Block and wake up certain threads
    By Spark in forum C Programming
    Replies: 9
    Last Post: 06-01-2002, 03:39 AM