ocr: Main Thread Prime calculation thread. Close request received by main thread Main thread sets termunated Thread reads property of termunated property as calculation false, and uses thread. synchronize to transfer result. Synchronize Main thread waits waits for main thread for calculation to become idle. thread to terminate -