worker reworked to work without wait/notify (through latch)