compares the differences between async vs sync in C#:
| Synchronous Programming | Asynchronous Programming |
|---|---|
| Blocking | Non-blocking |
| Single threaded | Can be multi-threaded |
| Simple to understand | Complex |
| May result in UI freezes | Can improve UI responsiveness |
| Limited to the capabilities of a single CPU | Can take advantage of multiple CPUs or CPU cores |
| Exceptions are raised immediately | Exceptions can be wrapped in a task and raised later |
| Does not use tasks | Uses tasks to represent async unit of work |


0 comments:
Post a Comment
Note: only a member of this blog may post a comment.