Synchronous and Asynchronous

Ajmal MuhammedAjmal Muhammed
1 min read

Imagine yourself as a cook.

You are going to make chicken Delight Salad ( worst food on indigo airplane trust me! )

Synchronous : You clean up chicken , Cut it into pieces, Put it in a tray and into the oven , You wait for it to be cooked for about 20min . Then you chop your veggies to make the salad.

Asynchronous : You clean up chicken , Cut it into pieces, Put it in a tray and into the oven. You set timer for 20 min and then you chop your veggies. All while the chicken is cooking.

Its that simple. Do something else when you are waiting for a job to be finished , making it efficient.

In C# use async and await for Asynchronous calling.

Took me a while to understand the concept. Hope that helps.

0
Subscribe to my newsletter

Read articles from Ajmal Muhammed directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ajmal Muhammed
Ajmal Muhammed