Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Multi-Threaded Elevator Simulator

by particle (Vicar)
on Aug 07, 2002 at 12:40 UTC ( [id://188292]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        # join the people threads and collect statistics
        my ($total_wait, $total_ride, $max_wait, $max_ride) = (0,0,0,0);
    ...
            $max_ride    = $ride1 if $ride1 > $max_ride;
            $max_ride    = $ride2 if $ride2 > $max_ride;
        }
    
  2. or download this
        # join the people threads and collect statistics
        my ($total_wait, $total_ride, $max_wait, $max_ride) = (0,0,0,0);
    ...
            $max_wait   = $wait1 > $wait2 ? $wait1 : $wait2;
            $max_ride   = $ride1 > $ride2 ? $ride1 : $ride2;
        }
    
  3. or download this
    .
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://188292]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found