The difference between synchronous and asynchronous
-> From the perspective of order and result (processing)
- After making a request, it
waits for the result before processing, waiting for thereadinessof the I/O operation- The focus is on whether the preparation for a specific I/O operation is ready
Makes a request and continues with other work, and when the task is completed, it receives a notification of completion and processes the corresponding work- It is performed through asynchronous APIs at the operating system level, and when the I/O operation is completed, processing is done using an appropriate handler
- If it
waitsfor the system call to complete, it is synchronous - If it
does not waitfor the system call to complete, it is asynchronous