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