Help for this page

Select Code to Download


  1. or download this
    threads.pm:
    WC: 13.76s  Usr: 0.39s  Sys: 0.07s  
    ...
    forks.pm:
    WC: 18.30s  Usr: 0.33s  Sys: 0.22s  
    CSv/f: 0/0  IOops: 0/0  Sigs: 0  Swaps: 0  PF: 14427/2524  Msg: 0/0  M
    +em: 5454
    
  2. or download this
    # which threading model do we want?
    use threads; use threads::shared;
    ...
        }
        printf("Thread %d DONE!\n",threads->tid());
    }