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.

Swarali Sree
Swarali Sree

I love thought experiments.

Updated on: 30-Jul-2019

408 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements