difference between thread.start() and executor.submit(thread)

Posted by Mrityunjay on Stack Overflow See other posts from Stack Overflow or by Mrityunjay
Published on 2010-06-07T13:20:49Z Indexed on 2010/06/07 13:22 UTC
Read the original article Hit count: 253

Filed under:
|
|

hi, i am facing a problem regarding the thread. I am having a class which implements runnable, and i can use thread.start() method on that class. My question is i have one more class java.util.concurrent.ExecutorService in which i can call executor.submit(thread)..

can anyone please tell me what is the difference between thread.start() and executor.submit(thread)...

© Stack Overflow or respective owner

Related posts about java

Related posts about thread