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