Difference between win32 and linux pthreads

This is a discussion on Difference between win32 and linux pthreads within the C Programming forums, part of the General Programming Boards category; Hi all, I am uncertain of what the difference is between pthreads for win32 and for linux. Can anyone please ...

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    17

    Difference between win32 and linux pthreads

    Hi all,

    I am uncertain of what the difference is between pthreads for win32 and for linux.

    Can anyone please tell me the differences between them.

    Are the functions the same?

    And how do you convert a program written with win32 pthreads to be linux pthreads?

    Is there any good site where my questions also can be answered?

    Many thanks

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    There isn't much of a difference between them as far as implementation goes. Both win32 threads, and pthreads are kernel level 1:1 implementations.

    Are the functions the same?
    Nope.

    And how do you convert a program written with win32 pthreads to be linux pthreads?
    By changing the function calls depending on the OS. CreateThread() on windows, pthread_create() on linux, etc. You can also find cross platform threading implementations as well. A google search can give you a lot more information on this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WIN32 API and Linux... *shudder
    By parad0x13 in forum C++ Programming
    Replies: 4
    Last Post: 07-24-2008, 08:27 PM
  2. Linux equivalent to Win32 ShellExecute
    By BobS0327 in forum Linux Programming
    Replies: 4
    Last Post: 06-07-2006, 05:35 AM
  3. Replies: 1
    Last Post: 10-24-2005, 07:35 AM
  4. compiling win32 apps under linux?
    By talz13 in forum Linux Programming
    Replies: 11
    Last Post: 02-07-2005, 12:43 PM
  5. How to compile it under linux and win32
    By GaPe in forum C Programming
    Replies: 4
    Last Post: 12-28-2002, 02:44 PM

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