Multithreading

This is a discussion on Multithreading within the C++ Programming forums, part of the General Programming Boards category; Does C++ supports multithreading?...

  1. #1
    Lord CyKill
    Guest

    Multithreading

    Does C++ supports multithreading?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Yes, C++ library supports multithreading via _beginthread() and _beginthreadex(). The concept of multithreading is relative to the platform that the program runs under.

    Kuphryn

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Boost has a cross-platform threading library.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    As Salem said, C++ does not directly support threads. There are several libraries to work with threads. For example for Win32:
    http://sources.redhat.com/pthreads-win32/

    There are also ports of Pthreads for other platforms.

  5. #5
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    The one complaint I have against Pthreads is that its a C library, and hence does not make use of C++ features (OOP, exceptions). It is probably the most commonly used threading library for C/C++ though.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multithreading (flag stopping a thread, ring buffer) volatile
    By ShwangShwing in forum C Programming
    Replies: 3
    Last Post: 05-19-2009, 07:27 AM
  2. multithreading in C++
    By manzoor in forum C++ Programming
    Replies: 19
    Last Post: 11-28-2008, 11:20 AM
  3. Question on Multithreading
    By ronan_40060 in forum C Programming
    Replies: 1
    Last Post: 08-23-2006, 07:58 AM
  4. Client/Server and Multithreading
    By osal in forum Windows Programming
    Replies: 2
    Last Post: 07-17-2004, 03:53 AM
  5. Multithreading
    By JaWiB in forum Game Programming
    Replies: 7
    Last Post: 08-24-2003, 09:28 PM

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