User Tools

Site Tools


haas:spring2016:sysprog:projects:pnc2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
haas:spring2016:sysprog:projects:pnc2 [2016/03/10 14:28] – created wedgehaas:spring2016:sysprog:projects:pnc2 [2016/03/10 14:57] (current) – [Execution] wedge
Line 131: Line 131:
     * these values should be positive integer values; you can make the assumption that the user will always do the right thing.     * these values should be positive integer values; you can make the assumption that the user will always do the right thing.
   * start your stopwatch (see **timing** section below):   * start your stopwatch (see **timing** section below):
-  * determine how to split up the work load, and fork() the requested number of child processes+  * determine how to split up the work load, and create the requested number thread
   * have each child perform its share of the work utilizing the given algorithm    * have each child perform its share of the work utilizing the given algorithm 
     * if enabled, display the prime numbers found in the range     * if enabled, display the prime numbers found in the range
Line 314: Line 314:
  
 <cli> <cli>
-lab46:~/src/sysprog/pnc2$ ./primesqrtfork 90 0 4+lab46:~/src/sysprog/pnc2$ ./primesqrtthread 90 0 4
   0.000006   0.000006
 lab46:~/src/sysprog/pnc2$  lab46:~/src/sysprog/pnc2$ 
haas/spring2016/sysprog/projects/pnc2.1457620139.txt.gz · Last modified: 2016/03/10 14:28 by wedge