Hi,
I have a class that starts up a
thread and inside thread's run() method is called. Rougly it goes like this:
So here thread starts a timer and runs until either longTask() returns something or timer expires.
I have two questions:
1.Is while loop in run() enough to kill a thread?
2.longTask() is an abstract method that must be implemented by extending class, so if there is a long process in the implementation of longTask(), when this thread dies will/should whatever is going on in longTask() die as well?
thanks,
Alex
[ July 31, 2006: Message edited by: Alex Kravets ]
All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson