An example
nProcess
P1 and P2 are running this same procedure and have access to the same
variable “a”
nProcesses
can be interrupted
anywhere
nIf P1 is
first interrupted after user input and P2 executes entirely
nThen the character echoed by P1 will be
the one read by P2 !!
static char a;
void echo()
{
cin >> a;
cout << a;
}