Originally posted by Ko Ko Naing:
Could you explain a bit about JDK 1.5 task scheduler? Just an introductory explanation about it is alright...
Thanks a lot for explaining the book contents related to those two mechanisms...
You welcome... glad to be of service...
As for the JDK 1.5 task executor... If you have used the timer classes before, it is pretty much the same functionality -- just a ton more options. Also, the executor is ...
First, it is also a thread pool, meaning some of the many options is to adjust the size, queue, and policies of how the tasks are to be executed.
Second, it takes both runnable and callables. The runnable is the interface that we all know and use for threads. The callable is like a runnable, except that it supports a return types and exceptions. This is necessary, if your task returns values and/or throw exceptions.
Henry