X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=blobdiff_plain;f=TD1%2Fexo3%2Fdeadlock.txt;h=1dcd56943aa5cfa776549d26804a6a018d9b3462;hp=c926496405bc750b9428f7059f1a70d951e1daf6;hb=c87306af42c468a61b0e39c3464b2dbe4d3f08d9;hpb=7bd74736638acf238b5bcb2ae51e05519ad116ae diff --git a/TD1/exo3/deadlock.txt b/TD1/exo3/deadlock.txt index c926496..1dcd569 100644 --- a/TD1/exo3/deadlock.txt +++ b/TD1/exo3/deadlock.txt @@ -10,4 +10,4 @@ Buffer plein -> P1 se met en attente, P2 a été notifié mais le buffer est ple Solution: faire un notifyAll() en sortie de SC dans le buffer pour s'assurer que un thread d'un type différent du type courant sortant du moniteur est notifié - (Consommateur -> Producteur ou Producteur -> Consommateur) + (Consommateur -> Producteur ou Producteur -> Consommateur) et sort de son attente.