tiosambr / jantardosfilosofos Goto Github PK
View Code? Open in Web Editor NEWO código em Java resolve o problema clássico do "Jantar dos Filósofos". Cinco filósofos alternam entre pensar e comer em uma mesa redonda. Cada filósofo, representado por uma thread, requer dois garfos adjacentes para comer.