Thread: Process vs Thread

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    130

    Process vs Thread

    Hi,

    I read that C programming language doesn't support mutlithread. Are there any libraries implemented for such purpose? And, what is the difference between process and thread?

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    A process is an instance of a program running. A thread is sort of like a process within a process. Generally each process has at least one thread, but sometimes more, depending upon how you view processes and threads.

    Processes and threading is O/S specific. What you can do, though, is find yourself a library that is cross-platform, such as pthreads. You can find a pthreads-for-Windows floating about somewhere.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 02:14 PM
  2. Thread Prog in C language (seg fault)
    By kumars in forum C Programming
    Replies: 22
    Last Post: 10-09-2008, 01:17 PM
  3. API Thread HEADACHE
    By WaterNut in forum Windows Programming
    Replies: 11
    Last Post: 01-16-2007, 10:10 AM
  4. multithreading question
    By ichijoji in forum C++ Programming
    Replies: 7
    Last Post: 04-12-2005, 10:59 PM
  5. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM