Q. Which is the function that allows a worker to terminate itself?
β
Correct Answer: (A)
close()
Explanation: The close() function allows a worker to terminate itself, and it is similar in effect to the terminate() method of a Worker object.