1. In the main method, create a LinkedBlockingQueue object. 2. Use a loop to add 10 Runnable tasks to the queue. 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 must be signed in to leave a comment
This page doesn't have any comments yet