Concurrency

The term concurrency is used when multiple threads are used in the application. Concurrency is the ability to execute multiple programs or parts of programs in parallel. Take into consideration an operation which is time-consuming and involves many subtasks executed one by one. However, the subtasks involved in the process are not necessarily executed one by one. Sometimes, the order of execution of these functions is unimportant and they can be executed in any order.

Let's consider a task of generating a result sheet for any exam conducted for 100 participants and each participant will appear for 4 papers. The very first task has to correct the answer sheets, followed by entering the marks in the result sheet. Get marks for all ...

Get Reactive Programming With Java 9 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.