How to kill thread?

@pbayer, @tkf, @baggepinnen, thank you all for your valuable instructions and concrete code examples!

It took me quite a while until I completely familiarized myself with every details in your answers.

@tkf, It took me days to catch the presence of wait=false in run() call. How silly of me!