Parallelism is the ability to resolve multiple tasks at the same time by having multiple threaded processors. Asynchronous tasks could run without issues, but synchronous tasks must wait for their dependency to finish before they could start. The critical path is the thread that has the full chain of synchronous tasks, and other threads will be flooded with asynchronous tasks to improve performance.
Synchronous refers to the dependency of one task on another, while asynchronous means there are no dependency. Synchronous tasks needs to be thread safe because racing conditions affect their results. Asynchronous tasks does not need to be thread safe because they are orthogonal to racing condition.
No comments:
Post a Comment