A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
please send responces......
Joined: Jul 04, 2008
Jul 08, 2008 06:06:00
Why can`t we call start() method two times on asame Thread?
Joined: May 09, 2008
Jul 08, 2008 06:50:00
It is like trying to start a Express train that is all ready running
Joined: Aug 10, 2005
Jul 08, 2008 09:36:00
Have you tried it? Do you get an error message? What is the error message?
Please copy and paste it here.
What happens if you issue a start on a thread that was previously started and has ended by exiting the run() method? Write a
program and let us know.
Jesper de Jong
Joined: Aug 16, 2005
Jul 08, 2008 12:21:00
Phatipaka, welcome to JavaRanch.
When you post a question, please
use a meaningful subject line
instead of something like "please send responces". An example of a better subject line for this topic is: "Why can't we call start() two times on a Thread?".
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
Joined: Apr 09, 2008
Jul 09, 2008 04:25:00
once a thread has come out of its run() method, it is dead. You cannot invoke a dead thread again.
-Piyush Porwal (Junk box)
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: please send responces......
Thread Start() method
Thread start( ) method , can only be called once?
can we use ThreadPoolExecutor inside mothod doPost to increase the performance?
Threads: differnece between start() and run()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015