概要
This skill provides a comprehensive framework for implementing, refactoring, and debugging multithreading in JavaScript and TypeScript environments. It guides developers through the complexities of Web Workers and Node.js threads, focusing on creating high-performance worker kernels that handle heavy computation while keeping the main thread responsive for UI and user interaction. By leveraging advanced patterns like buffer transfers, SharedArrayBuffer synchronization, and hardware-aware pool sizing, it helps eliminate frame drops and UI lag in compute-intensive applications such as games, simulations, and data processing tools.