Interrupt a thread which is doing printing task.