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 the papers, and then apply the formula to calculate the total followed by a percentage, and then again, add these entries in the final...