Chapter 6. Multithreaded Patterns
SharedArrayBuffer is to store a raw, binary representation of data. Even ChapterÂ 5 continued this pattern with the
Atomics object, exposing rather primitive methods for coordinating or modifying a handful of bytes at a time.
Just looking at such abstract and low-level APIs can make it difficult to see the big picture, or what these APIs can really be used for. Itâs admittedly difficult to take these concepts and convert them into something that is genuinely useful for an application. Thatâs what this chapter is for.
By examining these patterns youâll get a much better feel for how the applications you develop can benefit from multithreading.
The thread pool is a very popular pattern that is used in most multithreaded applications in some form or another. Essentially, a thread pool is a collection of homogeneous worker threads that are each capable of carrying out CPU-intensive ...