Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 647 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 647 Bytes

Tiger and caretaker

There is a tiger in a cage. The caretaker feeds him meat (a bowl of meat is a shared memory). The tiger from time to time eats several kilograms of meat, as much as he accidentally wants. When the bowl is empty, the tiger is kind and does not bite, the caretaker can come in and put in more meat. By pressing , all processes (tiger and caretaker) terminate correctly.

Load:

$ git clone https://github.com/Berezniker/IPC.git
$ cd IPC

Compile:

$ gcc cell.c -o cell

Run:

$ ./cell