Информация об изменениях

Сообщение Re[6]: Для тех, кто смеется над JavaScript от 09.06.2020 11:57

Изменено 09.06.2020 11:59 Lazytech

Re[6]: Для тех, кто смеется над JavaScript
Здравствуйте, AleksandrN, Вы писали:

AN>Что в нём прорывного?


Event loop?
Re[6]: Для тех, кто смеется над JavaScript
Здравствуйте, AleksandrN, Вы писали:

AN>Что в нём прорывного?


Event loop?

https://en.wikipedia.org/wiki/Node.js#Technical_details

Node.js operates on a single-thread event loop, using non-blocking I/O calls, allowing it to support tens of thousands of concurrent connections without incurring the cost of thread context switching.[69] The design of sharing a single thread among all the requests that use the observer pattern is intended for building highly concurrent applications, where any function performing I/O must use a callback. To accommodate the single-threaded event loop, Node.js uses the libuv library—which, in turn, uses a fixed-sized thread pool that handles some of the non-blocking asynchronous I/O operations.[7]