added example for interrupting thread with an event
Added example for terminating a multiprocessing-based worker.