Poll: Threading methods

Poll: Threading methods

What threading method do you use the most?

  • Windowsthreading API
  • OpenMP
  • Pthreads
  • Java threads
  • Other

Message Edited by hagabb on 01-05-2004 09:51 AM

14 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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).

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

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

Here are the poll results for May:

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?

Here are the poll results for June:

Win threads:  34% (8 votes)
OpenMP:       30% (7 votes)
Pthreads:     17% (4 votes)
Java threads: 13% (3 votes)
Other:         4% (1 vote)

Here are the poll results for July:

OpenMP:       31% (10 votes)
Win threads:  28% (9 votes)
Pthreads:     28% (9 votes)
Java threads:  9% (3 votes)
Other:         3% (1 vote)

Here are the poll results for August:

OpenMP:       29% (10 votes)
Win threads:  29% (10 votes)
Pthreads:     26% (9 votes)
Java threads: 11% (4 votes)
Other:         2% (1 vote)

Here are the poll results for September:

Win threads:  32% (12 votes)
OpenMP:       27% (10 votes)
Pthreads:     24% (9 votes)
Java threads: 13% (5 votes)
Other:         2% (1 vote)

Here are the poll results for October:

Win threads:  35% (14 votes)
OpenMP:       25% (10 votes)
Pthreads:     22% (9 votes)
Java threads: 15% (6 votes)
Other:         2% (1 vote)

I used win32 threads since few weeks ago, now I finished porting my current project to pthreads both under windows and linux.

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 are the poll results for November:

Win threads:  35% (16 votes)
OpenMP:       24% (11 votes)
Pthreads:     22% (10 votes)
Java threads: 13% (6 votes)
Other:         4% (2 votes)

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)

Leave a Comment

Please sign in to add a comment. Not a member? Join today