18 lines
186 B
Plaintext
18 lines
186 B
Plaintext
monitor s{
|
|
void a(){
|
|
cout << "A";
|
|
cout << "B";
|
|
}
|
|
|
|
void b(){
|
|
cout << "C";
|
|
cout << "D";
|
|
}
|
|
}
|
|
|
|
void proc1(){ a(); }
|
|
void proc2(){ b(); }
|
|
main(){
|
|
cobegin { proc1(); proc2(); }
|
|
}
|