Pliki_SOP/zajecia6/zad1.cm

16 lines
270 B
Plaintext
Raw Normal View History

2018-12-05 18:09:07 +01:00
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;
}