A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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!
author & internet detective
Joined: May 26, 2003
May 19, 2008 18:53:00
Thanks for pointing that out Nitesh!
OCA 8 book
How To Ask Questions The Smart Way
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Have you checked out
subject: execute vs submit ( threadPoolExecutor)
Difference between multithreading with and without Executor
Is there any difference between executeUpdate and execute?
Better than ThreadPoolExecutor
What is the difference between executeUpdate and execute?
Producer Consumer Controller
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015