Threading

Create fixed thread pool in java using Executors (example)

Thread Pool : Thread pool is collection of threads which are created to complete certain tasks.
The interaction between thread pool and task is as follows
1.) Thread Pool is created
2.) Task are created.
3.) Task assigned to Thread in thread pool.

What is thread in java with example (Real world analogy) ?

Everybody in this world is performing one duty or the other.The duties we are performs is like the functional activity of bigger execution block. Let us shrink our vision and take one house to understand. In traditional family environment husband involves in earning to maintain day to day expenses and wife involves in house hold activitie

Scroll to Top