[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Occam vs. monitors
- To: occam-com@xxxxxxxxx, java-threads@xxxxxxxxx
- Subject: Re: Occam vs. monitors
- From: Oyvind Teig <Oyvind.Teig@xxxxxxxxxxxx>
- Date: Wed, 27 May 1998 07:49:13 +0200
- Alternate-recipient: Allowed
- X400-mts-identifier: [/PRMD=autronica/ADMD=TELEMAX/C=NO/;5069 98/05/27 07:49]
- X400-originator: Oyvind.Teig@xxxxxxxxxxxx
- X400-received: by mta mail.autronica.no in /PRMD=autronica/ADMD=TELEMAX/C=NO/; Relayed; Wed, 27 May 1998 07:49:13 +0200
- X400-recipients: non-disclosure:;
MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: 8bit
PROC TestsOccamVsMonitor()
CHAN OF INT a,b:
PAR
SEQ
a ! 1
b ! 1
INT x,y:
SEQ
b ? x
a ? y
:
TestsOccamVsMonitor()
Peter seems to mean that this compiles to
IF
TRUE
STOP
And Denis (SPoC's father):
IF
FALSE
SKIP
I can tell what it runs like on SPoC:
It detects this design flaw (like it has
with some of my design flaws):
IF
TRUE
STOP
-- I have "stop on error":
-- We get a crash from the Scheduler:
-- SETERR ("Terminating application.\n"); // (MSG_TA)
-- since there is no task to run:
-- (CURTASK != NoTask) is not true any more
But, Denis, should SPoC ideally have told
at compile-time?
Cheers,
Oyvind Teig, Autronica, Trondheim, Norway
Oyvind.Teig@xxxxxxxxxxxx
Tel.: +47 73 58 12 68
Fax.: +47 73 91 93 20
My name starts with "Oslash":
Øyvind
http://www.hensa.ac.uk/parallel/groups/wotug/wotug21/papers.html
->"Opening Theme"