CSC352 Comparison threading to multiprocessing

From dftwiki3
Revision as of 21:17, 10 February 2010 by Thiebaut (talk | contribs) (Experiment)
Jump to: navigation, search

Experiment

  • Ran Threaded and Multiprocessing versions of NQueens programs (see Category:Python for source code) for N ranging from 10 to 25.
  • Typical shell script:
#! /bin/bash
# multiprocessingNQueens.py

for i in {10..25}
do 
    echo $i
    time python ./mulitprocessingNQueens.py $i | grep user
done

CSC352ComparisonMultiprocessingThreadingNQueens.png