Vianney DOLEANS / Antoine FORET
"A group of philosophers has decided to start a new theory, dictating a group of rules about sharing natural resources that prevents famishment around the world."
Creation des threads
Execution
EAT
THINK
REST
(1 << 2) = 0100
(1 << 1) = 0010
(1 << 0) = 0001
penser et manger
EAT | THINK => 0110
EAT => 0100
THINK => 0010
A t'on le droit de dormir ?
(EAT | THINK) & REST = 0110 & 0001
0110
& 0001
0000
A t'on le droit de manger ?
(EAT | THINK) & EAT = 0110 & 0100
& 0100
0100
By foret_a