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 信号量与互斥锁实现
- Host: GitHub
- URL: https://github.com/alumik/javascript-semaphore
- Owner: alumik
- Created: 2019-01-04T07:34:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T11:38:01.000Z (over 5 years ago)
- Last Synced: 2025-03-16T00:16:58.976Z (10 months ago)
- Topics: javascript, semaphore, thread-synchronization
- Language: JavaScript
- Homepage: https://pages.alumik.cn/javascript-semaphore/sample/
- Size: 594 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)