Tagged articles

SharedArrayBuffer

3 articles · Page 1 of 1
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Feb 25, 2026 · Mobile Development

Mastering HarmonyOS Concurrency: TaskPool, Worker & TaskGroup in AI Photo App

Through an AI ID photo tool case study, this article demonstrates HarmonyOS concurrency patterns: TaskPool for short preprocessing, Worker for long AI inference, TaskGroup for parallel batch generation, SequenceRunner for dependent tasks, SharedArrayBuffer for zero-copy sharing, Sendable for thread-safe singletons, and producer-consumer queues for real-time previews, with before/after performance metrics.

ConcurrencyHarmonyOSSendable
0 likes · 29 min read
Mastering HarmonyOS Concurrency: TaskPool, Worker & TaskGroup in AI Photo App
Amap Tech
Amap Tech
Nov 6, 2019 · Frontend Development

Front‑End Memory Management, Data Structures, and Performance Optimization

To handle the massive memory and CPU demands of modern front‑end map annotations, the article explains JavaScript’s stack‑heap model, object hash‑table storage, and the trade‑offs of plain arrays, TypedArray, DataView, and SharedArrayBuffer, showing that contiguous memory structures and Web‑Worker off‑loading dramatically improve performance and reduce allocations.

SharedArrayBufferTypedArrayWebWorker
0 likes · 17 min read
Front‑End Memory Management, Data Structures, and Performance Optimization
Node Underground
Node Underground
Oct 14, 2019 · Backend Development

How to Harness Node.js Worker Threads with Shared Memory and CGroup Limits

This article demonstrates creating Node.js Worker Threads to compute Fibonacci numbers, explains message passing via workerData and parentPort, explores shared memory with SharedArrayBuffer, and shows how to isolate and limit thread CPU usage using Linux CGroup controls, including retrieving thread IDs via a custom native addon.

Node.jsSharedArrayBuffercgroup
0 likes · 8 min read
How to Harness Node.js Worker Threads with Shared Memory and CGroup Limits