Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 373 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 373 Bytes

Upenn CIS505 HW1

threads use bubblesort, main thread merge sorted pieces like mergesort.
the communcation is through pipe.

generate numbers in a file

./makeinput [size] [filename]

run parallel sort

./mysort [-n number] [-t]
-n followed by number of threads or processes, default is 4
-t whether use multithread or multiprocess, default is process option