added basic structures for priority queues
incr and decr counter of active threads