Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the difference between synchronous and asynchronous call?

0
Posted

What is the difference between synchronous and asynchronous call?

0

You mention operating systems. So, I will assume synchronous and asynchronous system calls. Let us take a non-CS example. I want to buy some tablet and so I go to the medical store. I give the prescription to the pharmacist and wait at the desk until he retrieves it from storage. I only leave the desk after getting the tablet. This is an example of a synchronous call i.e. while I am waiting for the tablet, I can do nothing else but wait for my result i.e. wait for the tablet. Consider the same example, but the pharmacist tells me that the tablet is out of stock and he will get it from the market. He also tells me to leave my phone number and he would call me when he actually gets the tablet. A couple days later, I get a call from the pharmacist and I go pick up the tablets. This is an example of an asynchronous call i.e. I am not waiting for the tablet at the store: I am off doing other things for a couple of days until the pharmacist calls my phone number and asks me to collect the ta

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123