1.

How Would You Implement A Thread Pool?

Answer»

The ThreadPool class is a GENERIC implementation of a thread pool, which takes the following input SIZE of the pool to be constructed and name of the class which implements RUNNABLE (which has a visible default constructor) and constructs a thread pool with active threads that are waiting for activation. once the threads have FINISHED processing they come back and wait once again in the pool.

The ThreadPool class is a generic implementation of a thread pool, which takes the following input Size of the pool to be constructed and name of the class which implements Runnable (which has a visible default constructor) and constructs a thread pool with active threads that are waiting for activation. once the threads have finished processing they come back and wait once again in the pool.



Discussion

No Comment Found