Differentiate between synchronous and asynchronous input/output with the help of an example.
The input-output operation is asynchronous input/output operation since after the start of input/output, control is returned to the user program without waiting for the input/output to finish. The input/output continues and upon its completion, an interrupt is generated through the controller to attain CPU's attention.
CPU execution waits, whereas I/O proceeds, in that case, there is a possibility as at most one request I/O request is outstanding at a time. It is termed as synchronous I/O.