What is concurrency in Java?


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.

Updated on: 30-Jul-2019

419 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements