user34537
user34537

Reputation:

Good c++ lib for threading

I prefer a lib solely based on pthreads. What is a good c++ lib to for threading?

Upvotes: 5

Views: 4560

Answers (4)

Dani van der Meer
Dani van der Meer

Reputation: 6207

I looked at some options some time ago. Here are some:

  • Boost Thread - This is the most standard choice. Boost is the most standard library for C++, that is not in the official standard.
  • POCO - Has thread support and a lot more. Is my preferred choice because it lets you set thread priorities, something boost doesn't support. Thread priorities are important for my application domain (soft real-time).
  • Zthread - Looks a good library. I have no experience with it.
  • ACE - Well known library. I have no experience with it.

Then you have libraries that let you operate at an higher abstraction level like Thread Buildings Blocks.

Upvotes: 9

rotoglup
rotoglup

Reputation: 5238

Also, also, if you need some concurrency, but don't want to play that much with the threads, then you could look at Thread Building Blocks.

Upvotes: 1

Anonymous
Anonymous

Reputation: 18631

  • Boost Threads seems a pretty obvious suggestion.
  • Also if you need some concurrency, but don't want to play that much with the threads, than maybe Futures (see also Boost mailing lists)?

Upvotes: 1

Stephen
Stephen

Reputation: 4216

How about boost threads?

Boost.Thread enables the use of multiple threads of execution with shared data in portable C++ code. It provides classes and functions for managing the threads themselves, along with others for synchronizing data between the threads or providing separate copies of data specific to individual threads.

Upvotes: 12

Related Questions