30
labuus
6y

Colleagues who don't know the difference between Asynchronous and Parallel.

Comments
  • 2
    Wouldn't it be synchronous and asynchronous?
  • 1
    @mrsulfat Nope. I'm looking at a method that does stuff in parallel (synchronously) that has the word async in the name.
  • 4
    @mrsulfat Parallel: Executing multiple things together -- It is a blocking call

    Async: Working in background until the result is ready while the rest of the code gets executed, and only stops at the part where async result is being used -- It is an unblocking call
  • 0
    @gitpush aren't anything that is synchronous a blocking call?
  • 0
    Parallel and Asynchronous are not mutually exclusive.
  • 0
    Ranting about people not knowing stuff while not knowing it yourself, classic
  • 0
    Parallel is running at the same time, asynchronous task runned by some order by the given amount of time.
  • 0
    @jaerie Ok let me offer an definition and see if you agree. The confusion comes from the common concept of a task, so I'll start there. Parallel is doing multiple tasks at the same time. Asynchronous is doing a task and not waiting for it to compete (either fire-and-forget, or with a callback).
Add Comment