what is the difference between synchronous apis and asynchronous apis?

Viewed 14100

I want to know about the synchronous apis and asynchronous apis in operating system. What is the difference between them ?

2 Answers

A synchronous API will block the caller until it returns. An asynchronous API will not block the caller and typically will require a callback which will be executed once the work is completed.

Blocking

Callback

Related