- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Tim. Indeed the search pulled up several good articles from the IDS website.
-rajeev-
Rajeev Rohatgi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page