Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Scribd will begin operating the SlideShare business on December 1, 2020 As of this date, Scribd will manage your SlideShare account and any content you may have on SlideShare, and Scribd's General Terms of Use and Privacy Policy will apply. If you wish to opt out, please close your SlideShare account. Learn more.
Published on
Introduction to multithreading concurrent programming in Node.js with worker_threads, SharedArrayBuffer and Atomics. Examples of Race condition, Deadlock, Livelock and Starvation, Critical sections and Synchronization. Combination of asynchronous and concurrent programming with synchronization primitives: Semaphore, Counting Semaphore, Mutex, Monitor, Shared/Exclusive Locks, Queue Locks with priority etc. Use cases for shared memory and multithreading with thread-safe classes, data structures and Promises. Current state of worker_threads in Node.js, known problems and workarounds.