You are developing a web page that performs CPU-intensive calculations. A web worker processes
these calculations on a separate background thread. The process is instantiated from the web page.
You need to stop the web worker process after the calculations are completed.
Which two actions can you perform to achieve this goal? (Each correct answer presents a complete
solution. Choose two.)
A.
From the web page, call the close() method.
B.
From the web worker process, call the terminate() method.
C.
From the web page, call the terminate() method.
D.
From the web worker process, call the close() method.
Correct