Which is the function that allows a worker to terminate itself?
A
close()
B
exit()
C
terminate()
D
halt()
Correct Answer: close()
Worker.terminate() Immediately terminates the worker. This does not offer the worker an opportunity to finish its operations. The close() function allows a worker to terminate itself, and it is similar in effect to the terminate() method of a Worker object.