dynamic-affinity-scheduler-research
v1.0.1
Published
A Human-in-the-Loop Thread Scheduler using SharedArrayBuffer for high-performance web apps.
Downloads
199
Maintainers
Readme
Dynamic Affinity Scheduler (Research Edition)
A Human-in-the-Loop Thread Scheduler for High-Performance Web Applications.
This package is the reference implementation for the research paper "Dynamic Affinity Scheduler: Improving Web Performance Using Manual Thread Migration." It allows developers to manually migrate heavy computational tasks between Web Workers using SharedArrayBuffer and Atomics, bypassing the performance overhead of standard browser scheduling.
🚀 Features
- True Parallelism: Uses
SharedArrayBufferfor zero-copy communication. - Manual Affinity: Pin tasks to specific workers (simulating core affinity).
- Zero-Overhead Waiting: Uses
Atomics.wait()instead of CPU-intensive busy loops. - Research Grade: Includes metrics logging for throughput analysis.
📦 Installation
npm install dynamic-affinity-scheduler-research