Julien Sulpis @jsulpis.dev · Nov 19

But this can cause issues with concurrent access. That's why... the Atomics namespace provides static functions to make atomic operations. A worker thread can write into a shared buffer, then wake another thread that was waiting for an update.

0 likes 1 replies

?

Replies

Julien Sulpis · Nov 19

These APIs technically allow to implement parallel algorithms on worker threads. Of course this must be worth the extra cost of synchronizing the different threads. But I guess there are use cases for that ?