What is concurrency and how it is achieved in software?

What is concurrency and how it is achieved in software?

Concurrency is the collection of techniques and mechanisms that enable a computer program to perform several different tasks simultaneously, or apparently simultaneously. Multithreading concept can be used to achieve concurrency.