An open API service indexing awesome lists of open source software.

https://github.com/alumik/javascript-semaphore

JavaScript 信号量与互斥锁实现
https://github.com/alumik/javascript-semaphore

javascript semaphore thread-synchronization

Last synced: 7 months ago
JSON representation

JavaScript 信号量与互斥锁实现

Awesome Lists containing this project

README

          

# JavaScript 信号量与互斥锁实现

## Demo 运行方法

在仓库根目录下运行一个 HTTP 服务器,并访问 `http://<服务器地址>/sample/` 。

## 演示网站

https://pages.alumik.cn/javascript-semaphore/sample/

## 参考资料

[Atomics API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics)

[SharedArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer)

[JavaScript ES2018 (ES9) 文档](https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf)