- or download this
# 'manager' loggin thread: communication queues initialization
# and thread creation
...
$mgr_req_q->enqueue("die");
$mgr_id->join();
exit(0);
- or download this
# worker thread function
#
...
}
}
}
- or download this
elsif ($msg =~ /^open\s(.*)$/)
{
...
$mgr_state = "running";
broadcast_to_workers("run");
}