source:
CIVL/examples/fairness/fair1.cvl
| Last change on this file was 1cface7, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 194 bytes | |
| Rev | Line | |
|---|---|---|
| [1cface7] | 1 | /* This program has a non-terminating fair execution */ |
| 2 | #include <stdio.h> | |
| 3 | ||
| 4 | void f() { | |
| 5 | while (1) | |
| 6 | printf("bye\n"); | |
| 7 | } | |
| 8 | ||
| 9 | int main() { | |
| 10 | $proc p1 = $spawn f(); | |
| 11 | printf("hi\n"); | |
| 12 | $wait(p1); | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
