diff --git a/totally-pseudocode.txt b/totally-pseudocode.txt index 09641df..35336ee 100644 --- a/totally-pseudocode.txt +++ b/totally-pseudocode.txt @@ -7,7 +7,7 @@ Semaphores: sem_freelist = N, mut_freelist = 1, Thread-1: var b: pointer to type block; -while (true) +while (1) { // wait for >1 block on freelist @@ -36,7 +36,7 @@ while (true) Thread-2: var x, y: pointer to type block; -while (true) +while (1) { // wait for element on list1 @@ -84,7 +84,7 @@ while (true) Thread-3: var c: pointer to type block; -while (true) +while (1) { // wait for element on list2