Homework 4

Due Tuesday, Nov. 27

Here you will write an assembly language subroutine, callable from C, that calls the pthreads library. It will implement a certain sorting algorithm. Here are the specs.

Illustrative example: Say we have 3 threads, and our array is (12,5,13,3,4,5,8,1).

Make sure you test your code on some fairly large arrays, and with more than 2 threads. As mentioned in class, counting hyperthreading, you can get 4 useful threads on our dual-core machines such as pc28, and 8 on our machine named tetra.