Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

portable threading APIs

I know of three portable threading C++ APIs :

  1. Qt
  2. boost::thread
  3. GNU Pth

Apart from possible licensing issues involved, how do these compare in:

  • actual portability (mostly interested in Linux and Windows)
  • capabilities
  • programming ease-of-use
  • support/development activity of the library

And: are there more like these that are well supported and used?

like image 522
andreas buykx Avatar asked Sep 22 '10 08:09

andreas buykx


2 Answers

boost::thread is portable and actively supported, but most importantly it's going to be in the Standard C++0x Library. So I recommend this library for general-purpose threading.

like image 138
Yakov Galka Avatar answered Nov 15 '22 00:11

Yakov Galka


QT's QThread is really straightforward, easy to use and cross platform, but it only makes sense if you are developing your whole user application already with Qt. You will not want to tie a heavy amount of Qt runtime DLLs to your app. just to get threading support.

like image 29
FuH EDV Avatar answered Nov 14 '22 22:11

FuH EDV