HI WELCOME TO SIRIS

compares the differences between async vs sync in C#

Leave a Comment

  compares the differences between async vs sync in C#:

Synchronous ProgrammingAsynchronous Programming
BlockingNon-blocking
Single threadedCan be multi-threaded
Simple to understandComplex
May result in UI freezesCan improve UI responsiveness
Limited to the capabilities of a single CPUCan take advantage of multiple CPUs or CPU cores
Exceptions are raised immediatelyExceptions can be wrapped in a task and raised later
Does not use tasksUses tasks to represent async unit of work

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.