5
CS269: HW/SW Engineering of Embedded Systems, Winter02
await
•The only construct in metamodel for synchronization
•Implement critical sections
•Await ( guard ; test list; set list){critical section}
–Guard: condition that must hold for execution to continue
–Test list: other process should not have set these
–Set list: other process can not set theses now
–
•Nondeterminism
–Await{ ( g1 ; t1 ; s1 ) c1 , ( g2 ; t2 ; s2 ) c2…}