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?
Aucun commentaire:
Enregistrer un commentaire