This repo illustrates multiplication of a number by 17( mimicing CPU intensive operation) in C world from javascript and get eh result back at event-loop layer Here are the pre-requisite to run this simple add on
Must have node >= 10 installed on local Must have node-gyp installed (npm i -g node-gyp)
from the cloed repo folder, run
- node-gyp configure build
- node index.js