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