|
How to terminate a thread by signalling |
|
|
This J2ME tip demonstrates the method of terminating a thread
by signalling. This is achieved by changing the value of an
instance variable that the thread periodically inspects.
For example using a construction given below:
public void run( ) {
while (!requestedToStop)
// Do whatever is required
}
}
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.