vendredi 20 janvier 2017

Finding which pthreads are available when implementing a thread pool

I'm trying to implement a basic thread pool class using pthreads in C++. What is a simple way to know if an incoming task can be assigned to a given thread in the pool? I.e, how can I check which threads are not running anymore?

Thanks.

Aucun commentaire:

Enregistrer un commentaire