로딩
요청 처리 중입니다...

Threadpool, CustomEvent

 Threadpool, CustomEvent

fs,crypto, zlib 모듈의 메서드를 실행할 때는 백그라운드에서 동시에 실행 node는 백그라운드에서 동시에 4개가 돌아가도록 설정됨 백그라운드에 기본값으로 4개가 설정되어 돌아가는 것 확인 const crypto = require('crypto'); const pass = 'pass'; const salt = 'salt'; const start = Date.now(); crypto.pbkdf2(pass,salt,1000000,128,'sha512',()=>{ console.log('1',Date.now()-start); }); crypto.pbkdf2(pass,salt,1000000,128,'sha512',()=>{ console.log('2',Date.now()-start); }); crypto.pbkdf2(pass,salt,1000000,128,'sha512',()=>{ console.log('3',Date.now()-start); }); crypto.pbkdf2(pas...

# customevent # node # threadpool