1 2 3 4 5
'use strict'; const { Worker } = require('worker_threads'); const path = require('path'); new Worker(path.join(__dirname, 'fibonacci.js'));