Introducing Executors

  • 16
  • Locked
1. In the main method, create a fixed pool of 5 threads using the Executors class. 2. Use a loop to send 10 Runnable tasks to the pool. 3. In each task's run method, call the doExpensiveOperation method using the task's sequence number, starting from 1 (see the sample output).
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet