Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Intel_C_Intel
Employee
75 Views

OpenMP vs Posix threads

Can anyone help me with a article, book or other reference that discusses
the merits of OpenMP vs Posix threads ?
Our applications tend to be simple, ie with shared read data and separate write data.
Thanks !
-rajeev-
Rajeev Rohatgi
0 Kudos
3 Replies
TimP
Black Belt
75 Views

This issue has been raised before on this forum, so use the search function. The short answer is that OpenMP is generally best suited to data parallel applications with evident loop level parallelism. Where it is useful, it may be easier to debug and performance tune than direct application of posix threads. Of course, OpenMP does use posix threads when running on linux systems.
Intel_C_Intel
Employee
75 Views

Thanks, Tim. Indeed the search pulled up several good articles from the IDS website.
-rajeev-
Rajeev Rohatgi
Henry_G_Intel
Employee
75 Views

Hi Rajiv,
In case you haven't found it already, there's a short article on IDS that addresses your question, "Choosing an Appropriate Threading Method: OpenMP vs. Explicit Threading." It's in Chapter 3 (Application Threading) of the larger document, "Developing Platform Consistent Multithreaded Applications."
OpenMP is probably the best choice for your application, given thatthe concurrency is fork-join with little communication between the threads.
Best regards,
Henry
Reply