Ulf Dittmer wrote:Note that "interrupted" doesn't do anything - it returns something, which your code currently ignores.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Dittmer had said:
"interrupt" would generally be called from outside the thread
Manoj Maniraj wrote:You can stop like this
Naga Niranjan wrote:Komal,
Check my modifications to your code. I think it will solve your problem.
Thanks,
Niranjan
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|