CSC352 Comparison threading to multiprocessing
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
- recorded the times in spreadsheet (used Python program to parse the data)