What is a blocking function?

前端 未结 3 1617
囚心锁ツ
囚心锁ツ 2021-02-20 03:59

What is a blocking function or a blocking call?

This is a term I see again and again when referring to Node.js or realtime processing languages.

3条回答
  •  野的像风
    2021-02-20 04:07

    A blocking call is one that doesn't allow processing to continue until it returns to the calling thread - this is also referred to as a synchronous call. Asynchronous on the other hand means that threads (and code) can execute at the same time (concurrently).

提交回复
热议问题