链接已复制
13 回复数
My answer would actually be little more complex than the choices given, but I picked the closest one (Win32).
The real answer is that we implemented a C++ version of a subset of the Java threading method (an IRunnable interface and a Thread class), using Win32 threads on Windows and pthreads for Mac OS X, but we're looking into switching to pthreads for all platforms (assuming the availability of a pthreads implementation on Win32).
The real answer is that we implemented a C++ version of a subset of the Java threading method (an IRunnable interface and a Thread class), using Win32 threads on Windows and pthreads for Mac OS X, but we're looking into switching to pthreads for all platforms (assuming the availability of a pthreads implementation on Win32).
Henry,
We use MS APIs for Windows and Pthreads for Linux products.
But I wonder, how did you construct this wonderful vote panel with radio buttons and command buttons?
Please share your secret! (I want to use it also in VTune forum)
Thank you
-Daniel
We use MS APIs for Windows and Pthreads for Linux products.
But I wonder, how did you construct this wonderful vote panel with radio buttons and command buttons?
Please share your secret! (I want to use it also in VTune forum)
Thank you
-Daniel
Hi Daniel,
Many thread programmers use more than one method. I too use the MS API on Windows and Pthreads on Linux. However, I use OpenMP on both. It's the threading method that I use the most.
There's a tool to post polls but I think it's only visible to forum hosts. If you want to post a poll, I suggest posting the question and answers and asking the forum hosts to convert it to a poll.
Best regards,
Henry
Many thread programmers use more than one method. I too use the MS API on Windows and Pthreads on Linux. However, I use OpenMP on both. It's the threading method that I use the most.
There's a tool to post polls but I think it's only visible to forum hosts. If you want to post a poll, I suggest posting the question and answers and asking the forum hosts to convert it to a poll.
Best regards,
Henry
Here are the poll results for May:
Whoever voted 'other' please let us know what method you're using. Perl threads maybe?
Win threads: 38% (7 votes) OpenMP: 27% (5 votes) Pthreads: 22% (4 votes) Java threads: 5% (1 vote) Other: 5% (1 vote)
Whoever voted 'other' please let us know what method you're using. Perl threads maybe?
We use Win32 on Win32 platforms, and pthreads on UNIX/Linux. We built a threading services interface inside our code, which can be used in a platform-independent way for adding threading to various parts of the code.
Here's the final tally for the threading poll. Thanks to everyone who participated.
Win threads: 32% (16 votes) OpenMP: 30% (15 votes) Pthreads: 20% (10 votes) Java threads: 14% (7 votes) Other: 4% (2 votes)