Question: Suppose there are three Runnable tasks, task 1 , task 2 , task 3 . How do you run them in a thread pool with
Suppose there are three Runnable tasks, task task task How do you run them in a thread pool with fixed threads?
Question Select one:
A
ExecutorService executor Executors.newFixedThreadPool; executor.executetask; executor.executetask; executor.executetask;
B
ExecutorService executor Executors.newFixedThreadPool; executor.executetask; executor.executetask; executor.executetask;
C
new Threadtaskstart; new Threadtaskstart; new Threadtaskstart;
D
ExecutorService executor Executors.newFixedThreadPool; executor.executetask; executor.executetask; executor.executetask;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
