giovedì 26 settembre 2013

Q15

Which type of ExecutorService supports the execution of tasks after a fixed delay?
 

A.
DelayedExecutorService
 
B.
ScheduledExecutorService

C.
TimedExecutorService

D.
FixedExecutorService

E.
FutureExecutorService

 

Risposta B.
La java.util.concurrent.ScheduledExecutorService è una ExecutorService che può pianificare le attività da eseguire con un certo ritardo oppure che può eseguirle più volte con un intervallo tra le varie esecuzioni. Le operazioni vengono eseguite in modo asincrono da un thread di lavoro e non dal thread che gestisce il task della ScheduledExecutorService stessa.

Riferimenti :

 

 

Nessun commento:

Posta un commento