This is programmed on Ubuntu 10.04
Inter Process Communication program assignment
Using fifo, make 3 processes 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 fifo, through C.
I used GNU compiler gcc
test method :
make all -> this will compile
make fifo -> this will launch the program
p.s more detail you can refer README and submission files
thanks
File list:
fifo 2
.....\fifo.sh
.....\god
.....\God.c
.....\hare
.....\Hare.c
.....\input.txt
.....\jack.h
.....\main.c
.....\Makefile
.....\output.txt
.....\out_fifo.txt
.....\race
.....\ReadMe.txt
.....\report
.....\Report.c
.....\submission.pdf
.....\turtle
.....\Turtle.c
__MACOSX
.......\fifo 2
.......\......\._main.c
.......\......\._ReadMe.txt