Killing a thread while deleting an object
- by viswanathan
I have an application which does some socket communication with some hardwares.
Assume for the particular hardware i have an object and this object intiates a thread which listens on a particular port number say 5001 infinitely until a connection is established.
Now if i delete this obect is there anyway by which i can ensure that the thread that is listening on port number 5001 infinitely also gets destroyed.