adspace


How to stop a thread?

Answer Posted / Ram Vijai

To stop a thread in .NET, you can set its IsAlive property to false and join() the thread. In Python, you can use the thread.join() method to wait for the thread to finish execution. If you need to stop the thread earlier, you can use an event or flag to signal it to exit.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any one know about NIC (National Informatics Centre) questions Patterns and full detail about written exam, and interview send to softshikha2005@yahoo.com.in Thank you

2165