How is asynchronous javascript interpreted and executed in Node.js?

前端 未结 1 432
失恋的感觉
失恋的感觉 2020-12-07 20:48

I\'ve been doing a lot of research into the core of Node.js lately, and I have some questions about the inner workings of the Node platform. As I understand it, Node.js work

相关标签:
1条回答
  • 2020-12-07 21:51

    Basically what you are looking for is V8 Templates. It exposes all your C++ code as JavaScript functions that you can call from within the V8 Virtual Machine. You can associate C++ callbacks when functions are invoked or when specific object properties are accessed (Read Accessors and Interceptors).

    I found a very good article which explains all of this - How does NodeJS work?. It also explains how libuv works in conjunction with Node to achieve asynchronicity.

    Hope this helps!

    0 讨论(0)
提交回复
热议问题