This is programmed on Ubuntu 10.04
Inter Process Communication program assignment
Using thread, make 3 thread for Hare, Turtle and God
They do race, Hare runs fast, Turtle runs slow(configured by "input.txt")
when Hare overcome Turtle, then Hare go to sleep for a while.
God can interrupt anytime before the race finish.
God can adjust hare or turtle's location.
----------
implemented using thread, through C.
I used GNU compiler gcc
test method :
make all -> this will compile
make thread -> this will launch the program
p.s more detail you can refer README and submission files
thanks
File list:
Thread
.....\God.h
.....\Hare.h
.....\input.txt
.....\jack.h
.....\main.c
.....\Makefile
.....\out_thread.txt
.....\race
.....\ReadMe.txt
.....\Report.h
.....\submission.pdf
.....\Turtle.h
__MACOSX
.......\Thread
.......\......\._main.c
.......\......\._ReadMe.txt