From 7cb68945aa7e94360f66977fe7d524c12fac4139 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Wed, 6 Apr 2022 01:00:07 -0500 Subject: [PATCH] Include shared variables and semaphores in pseudocode. --- totally-pseudocode.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/totally-pseudocode.txt b/totally-pseudocode.txt index 4a7a45b..09641df 100644 --- a/totally-pseudocode.txt +++ b/totally-pseudocode.txt @@ -1,5 +1,10 @@ Shared Variables: freelist, list-1, list-2: block +Semaphores: sem_freelist = N, mut_freelist = 1, + sem_freelist_minus_1 = N-1, + sem_list1 = 0, mut_list1 = 1, + sem_list2 = 0, mut_list2 = 1; + Thread-1: var b: pointer to type block; while (true)