concurrency

Showing posts with label concurrency. Show all posts
Showing posts with label concurrency. Show all posts

Thread pool in Java


The Thread poolIntroductionExecutor implementations use thread pools.The thread pool is a collection of worker threads that are ready to serve.Creating new threads and manage them uses a big amount of data.Worker threads in the thread pool will help to reduce this overhead of creating threads.Tasks...

Java ExecutorService


Java ExecutorServiceIntroductionIf an application has few threads, it can be used threads very easily using the above methods.But if an application has many threads, it will be not easy to handle this.Executors can be used to avoid this complexity.The executor framework is a framework that can be...