From b555707fd33c815799e6646f7602f0c5db07d305 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Wed, 6 Apr 2022 01:12:19 -0500 Subject: [PATCH] while (1) --- totally-pseudocode.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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