source:
CIVL/examples/spawn.cvl@
9ae277d
| Last change on this file since 9ae277d was 34760dc, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 140 bytes | |
| Line | |
|---|---|
| 1 | |
| 2 | void f(int n) { |
| 3 | for (int i=0; i<n; i++) ; |
| 4 | } |
| 5 | |
| 6 | void main() { |
| 7 | _proc p = _spawn f(3); |
| 8 | _proc q = _spawn f(10000); |
| 9 | _wait p; |
| 10 | _wait q; |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
