Assignment 1: Fun with Threads

CS33100 - Advanced Operating Systems
Fall, 2002
Due : Tuesday, October 8.

The Royal Society for Putting Little Numbers in Front of Big Numbers has decided that it is imperative to sort large files of double precision IEEE-754 floating point data. For this, they have contacted you to write a sorting program this purpose---mostly because no one else was around and you didn't seem to be particular busy.

Your task is simple. Write a program that reads the file "/scratch1/numbers", sorts them in ascending order, and writes them back to a file "sorted". You must do this on schlitz.cs.uchicago.edu, a 4 processor Sun server. Moreover, your program should use threads to make the program run as fast as possible.

Here are a few specific details: