Difference between Synchronous , Asynchronous ,Multithreading Asynchronous or Multithreading And Multi Processing

Asad Iftikhar
1 min readJul 3, 2021

Synchronous : -

Single Request Thread processing at a single time on Api.

Asynchronous : -

Multiple Request thread at a single time on Api’s Awaiting for Previous threads to be completed first.

Multithreading or Multithreading Asynchronous :-

Multiple Request thread at a single time on Api’s Processing Simultaneously.

Example : -

Multithreading means multiple request not awaiting for first threads to be completed first and Performing operation at a same time.

Dis Advantages:-

  1. If two threads are changing the Property value of a same variable at a same time then you will have exception cause they are changing the memory Address of the same variable at a same time. This can be overcome by using Records feature available in . Net 5 which is Immutable
  2. Two Threads performing database operation at the same time on the same table then you will have Error table is locked.
  3. Not easy to Maintain you need to have depth knowledge of Computer Architecture.

Multi Processing : -

Multi Processing means creating different process of the same task using different Processor Memory resources and utilization

Example:-

Create different process for the same variable and store them in different memory so two process can change the same thread at the same time.

But Multi Processing Database scenarios is same as Multithreading.

--

--