What is concurrency in Java?

Java 8Object Oriented ProgrammingProgramming

The ability to run multiple programs or parts of programs (threads) in parallel is known as concurrency.

A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources especially when your computer has multiple CPUs. Multi-threading enables you to write in a way where multiple activities can proceed concurrently in the same program.

raja
Published on 08-Feb-2018 13:57:43
Advertisements