initial work on sems
initial sems
sem revised
Merge branch 'derek'

Conflicts:
	semaphore.c
new changes to thread_do_work