Skip to content

Berezniker/IPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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