Implement a thread-pool concurrent program


Problem

• Implement a Thread-pool concurrent program that uses a callable object to compute frequency of negative even number inside a large array of size 1,000,000 random integers ranging between -100 to 100. Your program should distribute workload between all threads and use optimal number of threads to provide best performance.(java)

• A parking garage has place for 100 cars. There are many turnstiles (mechanical gates) letting cars in and out. As cars come in a shared counter is incremented. As cars leave the garage, the shared counter is decremented. Implement the shared counter as a monitor in Java. See to it that if there are 100 cars in the garage, processes trying to increment the counter get delayed until some car leaves the garage.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Implement a thread-pool concurrent program
Reference No:- TGS03216009

Expected delivery within 24 Hours