Include shared variables and semaphores in pseudocode.

This commit is contained in:
John 2022-04-06 01:00:07 -05:00
parent 60508c4c64
commit 7cb68945aa

View File

@ -1,5 +1,10 @@
Shared Variables: freelist, list-1, list-2: block 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: Thread-1:
var b: pointer to type block; var b: pointer to type block;
while (true) while (true)