File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Thread.start() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Thread.start()" Watch "Thread.start()" New topic
Author

Thread.start()

rani vini
Greenhorn

Joined: May 13, 2009
Posts: 24
Can anyone tell me
Why the start() method in the Thread class is not final? What will happen if I override start method?
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
So that you can do any special processing before and/or after starting a new thread. Why do you think start() should be marked final?

BTW this is not a BEA/Weblogic question. I think it should be moved to another forum.
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

rani vini wrote:Can anyone tell me
Why the start() method in the Thread class is not final? What will happen if I override start method?


I think, this is a good question indeed! BTW, the start() method in the Thread class does,

1) Registering our Thread with the thread scheduler then, only the thread scheduler allocate CPU and memory type of resources for this thread.
2) calls run() of the Thread,

Then it's up to the run() method to do further....


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread.start()
 
Similar Threads
jspInit ....
Can we only start() a thread?
Dividing a List into chunks
Doubts in Web Container concept
deprecated method