|
Your time now: Mon Nov 23, 2009 1:37 pm
|
View unanswered posts | View active topics
| Author |
Message |
|
sasi
|
Post subject: Is it run() method for a thread? Posted: Wed May 02, 2007 7:18 am |
|
Joined: Mon Apr 23, 2007 2:10 pm Posts: 13
|
|
Hai everybody,
I need to clarify a dout regarding thread's, means we all write the run()method(what is the purpose of it?),as per i concern it is meant for contineous running purpose,so we are telling for contineous running we implement run method, so is their any requirement to specify any loop inside the run method for contineous running or not is the question?
regards,
sasi.
|
|
| Top |
|
 |
|
marecki6000
|
Post subject: Posted: Sat May 05, 2007 4:49 pm |
|
Joined: Thu Apr 26, 2007 11:18 pm Posts: 6
|
|
Well, your vision is incorrect.
It is not "meant for contineous running purpose". It is simply an entry point to the thread (invoked by start() method), such as main function is an entry point for java application.
If you want a thread to run continuously, you would have to define your own loop inside run method.
regards
Marek
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|