working queue and simulation of processes, TODO: sync