There are many situations in which Direct Memory Access (DMA) is used to access the host system or I/O operations (such as files, databases, or network access) are used, which is where processing is done by the CPU rather than the application thread. In the preceding scenario, the calling thread makes a call to the I/O API and waits for the task to complete by moving to a blocked state. When the task is completed by the CPU, the thread is unblocked and finishes the rest of the method.
Using asynchronous methods, we can improve the application's performance and responsiveness. We can also execute a method via a different thread.