Prodly interview question

how to interrupt a thread