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

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.

主站蜘蛛池模板: 乐平市| 卢龙县| 华容县| 大理市| 五寨县| 泰安市| 大竹县| 察雅县| 夏河县| 龙南县| 来凤县| 夹江县| 桐乡市| 凤城市| 隆化县| 宜兴市| 泰宁县| 昭苏县| 梁河县| 崇仁县| 尤溪县| 仁怀市| 稻城县| 调兵山市| 买车| 三亚市| 亚东县| 新余市| 普兰县| 平遥县| 江永县| 青浦区| 安吉县| 偃师市| 岳池县| 永胜县| 普兰县| 前郭尔| 苍南县| 绥宁县| 吉隆县|