Help for this page

Select Code to Download


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