rstratton/nachos — pull request #1 by yuuks (2012-09-18 04:45:08+00:00)
Title: Part 1, join()

This is an initial attempt at part 1, don't merge!!

I haven't touched java in 2 yrs so please let me know about any conventions or mistakes.
I'd love some feed back, and this is a good place we can discuss design stuff also.

### Design

- each ```KThread``` has an attribute ```KThread waitingThread``` initialized to null.
- when join is called, it will set the waitingThread to the current thread, and put it to sleep.
- in the finish method, a KThread readies the sleeping waitingThread.