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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |