--- /dev/null
+#define FALSE 0
+#define TRUE 1
+#define N 2 // nombre de processus
+int turn; // à qui le tour?
+int flags[N]; // initialement valeurs FALSE
+
+/* attente active */
+
+static void enter_region(int process) { // entrée en SC
+ int other;
+ other = 1 - process;
+ flags[process] = TRUE;
+ turn = process;
+ while (turn == process && flags[other] == TRUE) ;
+}
+
+static void leave_region(int process) { // sortie de SC
+ flags[process] = FALSE;
+}
+
+int main() {
+
+}