0% found this document useful (0 votes)
10 views1 page

Slides Concurrency ExecutorService Challenge

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Slides Concurrency ExecutorService Challenge

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 1

The ExecutorService Challenge

In this challenge, I want you to modify, and enhance, the Shoe Warehouse
Fulfillment code you created, from the previous challenge video.
You should use ExecutorService classes, any of the three that I've covered, so use a
SingleThreadExecutor, a FixedThreadPool, or a CachedThreadPool, or a combination
of these.
You'll use these, instead of managing individual threads, as you did in that previous
challenge.
• Add an ExecutorService in the main method, to send orders to the warehouse.
• Add an ExecutorService to the ShoeWarehouse class, which will fulfill orders.

You should create, and fulfill, 15 shoe orders.

COMPLETE JAVA MASTERCLASS


ExecutorService Challenge

You might also like