Parallel programming / Synchronization using JavaScript Web Workers

前端 未结 3 1606
悲哀的现实
悲哀的现实 2021-01-18 18:11

Are there any synchronization primitives like Barriers, Semaphors, Locks, Monitors, ... available in JavaScript / Web Workers or is there

3条回答
  •  遥遥无期
    2021-01-18 18:28

    Here you have a library based on jQuery made for that purpose: http://www.megiddo.ch/jcon-q-rency.

    Of course the model is not really identical to java.util.concurrent since we are not dealing with the same environment, as explained in the other answers...

提交回复
热议问题