in order run multiple functions using daemon thread parallelly, built queue holds waiting threads. once daemon thread finished working on thread, pop thread queue , execute him using daemon thread. there better way it? maby built-in?
in addition, how make code keep checking if new threads waiting in queue(and if daemon thread finished,immediately pop new 1 , start working on it) meanwhile, execute other functions? (not necessary related process)