Help for this page

Select Code to Download


  1. or download this
    # which threading model do we want?
    use threads;
    ...
    sub thread_sub {
        printf "Thread %d started\n",threads->tid();
    }
    
  2. or download this
    threads.pm:
      Major (requiring I/O) page faults: 387.00
    ...
    forks.pm:
      Major (requiring I/O) page faults: 470.00
      Minor (reclaiming a frame) page faults: 4591.20