Main Thread
Message receivedby main thread
M ain thre ad waits for calculation thread to terminate
WaitFor operation completes. Main thread cle ans up after calculation thread.
Prime calculation thread.
Message posted, notifying main thread that calculation will shortly terminate.
i