01.06.2014 Views

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Process (2)<br />

• A process type (proctype)<br />

consists of<br />

◾a name<br />

◾a list of formal parameters<br />

◾local variable declarations<br />

◾the body<br />

proctype Sender(byte in; byte out) {<br />

bit sndB;<br />

do<br />

:: out==10 -><br />

in=4;<br />

if<br />

:: sndB == 1 -> sndB = 1-sndB<br />

:: else -> skip<br />

fi<br />

od<br />

139<br />

<strong>Trinity</strong> <strong>College</strong> <strong>Dublin</strong><br />

© Mike Brady 2007–2009

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!