Node.js Worker 스레드 기본 예제
[개발환경] 운영체제 : Windows 10 Pro Node.js 버전 : V12.14.0 CPU : AMD Ryzen 7 1700 8-core Processor app.js const path = require('path'); const envInfo = require('./env_info.json'); const { Worker } = require('worker_threads'); let workerPath = path.join(__dirname, './worker.js'); let resultArr = new Array(envInfo.numThreads + 1); if (envInfo.useThread) { for (let i = 0; i < envInfo.numThreads; i++) { let..