Skip to content

Latest commit

 

History

History
70 lines (36 loc) · 1.05 KB

File metadata and controls

70 lines (36 loc) · 1.05 KB

Sync vs Async and Blocking vs Non-Blocking

Let's clarify these confusing concepts!


image-20200827161039232


Block vs Non-Block

: How to handle targets that cannot be controlled


What is Block?

  • The called function holds the control and returns it together with the result value when returning


Sync vs Async

: Synchronous vs Asynchronous (abstract)


What is Synchronous?

  • Syn (together) + Chrono (time)
    • Are the times of the targets aligned?
      • Aligning the time
    • When the time of returning control and the time of delivering the result value are the same
      • Synchronous!

What is Asynchronous?

  • Not aligning the time


Block & Non-Block vs Sync & Async


Block & Non-Block

  • About control
  • How do you handle targets that cannot be controlled?

Sync & Async

  • About the time (timing) of returning control

  • Are the times of the targets aligned?