A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
execute vs submit ( threadPoolExecutor)
Joined: Mar 06, 2008
May 18, 2008 23:56:00
Sorry if this sound too basic... What is the difference between a submit and an execute of a Runnable task in a
A sample code fails with a
when we attempt to use execute ( Ofcourse Calling the shutdown on the
The same code 'Seems' to work with submit... Are we lucky ? or is it some race condition or a difference between execute and submit that eludes me ?
Thanks a bunch...
Joined: Feb 25, 2007
May 19, 2008 02:47:00
Please do not
the same question in multiple forums.
Let us continue the discussion
, a better way to API!
Joined: May 26, 2003
May 19, 2008 18:53:00
Thanks for pointing that out Nitesh!
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: execute vs submit ( threadPoolExecutor)
Better than ThreadPoolExecutor
execute vs submit ( ThreadPoolExecutor)
Is there any difference between executeUpdate and execute?
Difference between multithreading with and without Executor
What is the difference between executeUpdate and execute?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014