Pliki_SOP/zajecia6/zad1.cm
2018-12-05 18:09:07 +01:00

16 lines
270 B
Plaintext

void hello (char id)
{
cout << "Hi! I am a process!" << endl;
cout << "My ID is: " << id << endl;
cout << "Bye!" << endl;
}
main()
{
cobegin {
hello('A'); hello('B'); hello('C');
}
cout << "All processes finished" << endl;
}