/* All fair executions terminate. */ #include int x=0; void f() { while (x==0) { $atomic{ printf("Hi\n"); } } } int main() { $proc p1 = $spawn f(); x=1; $wait(p1); }