CodeByAkram: Thread
Showing posts with label Thread. Show all posts
Showing posts with label Thread. Show all posts
undefined 202

Multi threading using Executor Services in Java

 The ExecutorService interface, executes tasks in parallel in background and represents an asynchronous execution mechanism. The ExecutorService create and maintain the reusable thread pool.How to create ExecutorService?To create ExecutorService, you can use Executors factory to create the instance of ExecutorService....
undefined 201

What is Thread in Java

What is Thread in Java? Java Thread is an independent path of execution within a program which can run in parallel with other existing Threads. Now lets talk about Process. A process is a self contained execution environment and it can be seen as a program. However a program itself contains multiple processes...
undefined 201

Simple Deadlock Explanation

Deadlock Explanation with Example. Deadlock means, it is a situation where 2 or more threads are blocked and waiting for each other. Let's take an example, in the office we have shared printer and scanner where employees has ability to do scanning and printing. 1. Deepak has bunch of documents that it...