# `ThreadPool`

digraph inheritanceca4d0b4c47 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "Logger" [URL="taurus-Logger.html#taurus.Logger",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "ThreadPool" [URL="#taurus.core.util.threadpool.ThreadPool",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top"]; "Logger" -> "ThreadPool" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class ThreadPool(name=None, parent=None, Psize=20, Qsize=20, daemons=True, worker_cls=None)

  Import from `taurus.core.util.threadpool` as:

      from taurus.core.util.threadpool import ThreadPool

  NoJob = (None, None, None, None, None, None)
  add(job, callback=None, *args, **kw)
  getNumOfBusyWorkers()

    Get the number of workers that are in busy mode.

  join()
  property qsize
  property size

    number of threads