asked
[Renewed] Node.js Textbook - From Basics to Project Practice
worker_threads
Written on
·
228
0
워커에서 작업들을 관리 할때 임계영역에 있는 자원들에 대한
mutext lock, unlock 기능은 어떤 방식으로 사용할수 있을
까요..?
Answer 1
sharedArrayBuffer랑 Atomics 객체로 해야 합니다.
https://blogtitle.github.io/using-javascript-sharedarraybuffers-and-atomics/