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

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.

主站蜘蛛池模板: 抚松县| 平顺县| 岳西县| 邳州市| 垫江县| 准格尔旗| 龙岩市| 张家口市| 灵寿县| 大邑县| 伊川县| 平泉县| 舞阳县| 福贡县| 新安县| 延安市| 松江区| 柳州市| 庆阳市| 黎城县| 怀安县| 卫辉市| 五大连池市| 达拉特旗| 荥阳市| 池州市| 兴仁县| 浏阳市| 泰宁县| 通江县| 扶绥县| 邳州市| 玉树县| 灌阳县| 正蓝旗| 辰溪县| 当阳市| 达孜县| 北川| 镇赉县| 磐安县|