官术网_书友最值得收藏!

Non-blocking

Non-blocking means threads never block. If the thread needs to block, the code is written in such a way that the thread gets notified at the right time and the process continues. Reactive programming lets you implement a non-blocking, declarative, and event-driven architecture.

One of the approaches to writing non-blocking applications is by using messages as the means of sending data. A thread sends the request and soon after that, the thread is being used for something else. When the response is ready, it is delivered back using another thread and the requesting party is notified so that further processing can continue:

Figure 4: Non-blocking

The non-blocking concept is already implemented by well-known frameworks, such as Node.js and Akka. The approach that Node.js uses is a single thread that sends data in a multiplexing aspect.

In telecommunications and computer networks, multiplexing (sometimes contracted to muxing) is a method by which multiple analog or digital signals are combined into one signal over a shared medium. The aim is to share an expensive resource. For more information about multiplexing, you can visit the following link: http://www.icym.edu.my/v13/about-us/our-news/general/722-multiplexing.html.

主站蜘蛛池模板: 隆昌县| 大冶市| 休宁县| 安岳县| 博罗县| 吉水县| 平定县| 连南| 嘉鱼县| 临安市| 永清县| 桐柏县| 稷山县| 宜章县| 宜丰县| 屏东市| 岗巴县| 新建县| 沾化县| 永宁县| 河曲县| 精河县| 伊吾县| 铜川市| 涞源县| 桐梓县| 栾城县| 诸城市| 蓝山县| 信阳市| 綦江县| 揭东县| 大邑县| 紫金县| 临桂县| 化州市| 慈利县| 绥棱县| 葫芦岛市| 横峰县| 安吉县|