title: PHP pthreads count active threads?
body: <p>I want to write some PHP Code with pthreads. For this pthreads I need to know how many threads are active. Because the next system can only handle e fixed number of requests. I can count the started threads, but I can't subtract when a thread has stopped.</p>
  
  <p>I tried to to count with count on the threads object, but I also doesn't subtract. How can I manage, that I get a information to my starting script if a thread has finished his work?</p>