A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Threads and Synchronization
Thread vs Executor
Joined: Dec 16, 2007
Oct 17, 2008 02:52:00
What is the advantage of using Executors over conventional threading? Can anyone explain with a simple example?
Joined: Oct 13, 2005
Oct 17, 2008 04:16:00
Find a copy of
Concurrency in Practice by Brian Goetz, Tim Peierls, Joseph Bowbeer, David Holmes, Joshua Bloch, Doug Lea
I think this thread would sit better in the threads forum, so I shall move it.
Joined: Feb 25, 2007
Oct 17, 2008 04:53:00
Executors is a threadpool.
Its costly to create a new thread everytime to process a task.
Its effective and recommended to reuse threads if possible.
Executors do just that for you.
This is the basic benefit of using Executors over thread creation per task.
For detailed discussions do read the book that Campbell has pointed out!
, a better way to API!
subject: Thread vs Executor
Thread and Web Applications
Process the multiple records in a file by Producer/consumer concept using Multithreading
Multi threaded programs in Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015