while (1)
This commit is contained in:
parent
7cb68945aa
commit
b555707fd3
@ -7,7 +7,7 @@ Semaphores: sem_freelist = N, mut_freelist = 1,
|
|||||||
|
|
||||||
Thread-1:
|
Thread-1:
|
||||||
var b: pointer to type block;
|
var b: pointer to type block;
|
||||||
while (true)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
||||||
// wait for >1 block on freelist
|
// wait for >1 block on freelist
|
||||||
@ -36,7 +36,7 @@ while (true)
|
|||||||
|
|
||||||
Thread-2:
|
Thread-2:
|
||||||
var x, y: pointer to type block;
|
var x, y: pointer to type block;
|
||||||
while (true)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
||||||
// wait for element on list1
|
// wait for element on list1
|
||||||
@ -84,7 +84,7 @@ while (true)
|
|||||||
|
|
||||||
Thread-3:
|
Thread-3:
|
||||||
var c: pointer to type block;
|
var c: pointer to type block;
|
||||||
while (true)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
||||||
// wait for element on list2
|
// wait for element on list2
|
||||||
|
Loading…
Reference in New Issue
Block a user