From de2deb15ad83b3a6882e6c35c97a7b3094b20e9d Mon Sep 17 00:00:00 2001 From: Ranium Date: Tue, 7 May 2024 11:23:23 +0200 Subject: [PATCH] add pco modification --- infotro/PTR/PCO.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infotro/PTR/PCO.md b/infotro/PTR/PCO.md index 26fd98c..45b7bff 100644 --- a/infotro/PTR/PCO.md +++ b/infotro/PTR/PCO.md @@ -235,9 +235,9 @@ La coopération entre processus implique la synchronisation entre eux pour évit ## Évènement L'évènement est un outil permettant de résoudre un problème de synchronisation comme les sémaphores ou les mutex. On peut manipuler les évènements : -- ***Wait()*** : Attendre un évènement -- ***Signal()*** : Déclencher un évènement -- ***Init()*** : Initialiser un évènement +- ***Wait(event)*** : Attendre que l'évènement **event** se produise par la fonction signal(...) +- ***Signal(event)*** : Déclencher l'évènement **event** +- ***Init(event)*** : Reset l'évènement **event** (inverse de signal(event)) On peut aussi résoudre un problème de synchronisation entre processus avec un sémaphore initialisé à 0. On peut le comparer à une barrière déclenchable depuis un autre processus.