Tagged articles
pthreads
10 articles · Page 1 of 1
This guide explains how to install the pthreads extension for PHP and presents three practical techniques—try‑catch with throwable propagation, shared‑memory error variables, and file‑based logging—to reliably capture and manage errors in multithreaded PHP applications.
Multithreadingerror handlingpthreads
0 likes · 5 min read

This article presents a compact C thread‑pool implementation for Linux using POSIX pthreads, explains the core data structures and functions, shows how to create, enqueue tasks, and destroy the pool, and includes a runnable demo with annotated source code.
Linuxpthreadsthread pool
0 likes · 7 min read

This article explains how to install the pthreads extension for PHP and demonstrates three approaches—try‑catch blocks, shared variables, and logging—to capture and propagate errors from worker threads back to the main thread, ensuring stable multithreaded applications.
BackendMultithreadingpthreads
0 likes · 5 min read

This article explains how to implement encapsulated concurrent programming in PHP by using the pcntl extension for multi‑processes, the pthread extension for multi‑threads, and the Swoole extension for coroutines, providing clear code examples and discussing the advantages of each approach.
ConcurrencyPHPSwoole
0 likes · 5 min read

This article explains why traditional Unix fork/exec models are costly, introduces POSIX threads (Pthreads) as a lightweight alternative, and provides detailed guidance on thread data structures, creation, termination, synchronization primitives, and attribute configuration with practical code examples for Linux developers.
ConcurrencyMultithreadingSynchronization
0 likes · 20 min read

This article explains the limitations of the traditional Unix fork model, introduces POSIX threads as lightweight processes, details their data structures, core functions, creation, termination, synchronization primitives, attributes, and provides extensive C code examples for practical multithreaded programming on Linux.
POSIXc-programmingpthreads
0 likes · 22 min read


政采云技术Apr 28, 2022 · Fundamentals
This article explores thread blocking and waking mechanisms in Java using LockSupport and Unsafe, explaining how these low-level tools enable thread scheduling without traditional locks.
Atomic OperationsJava ConcurrencyLockSupport
0 likes · 15 min read

The article explains how to design a C++‑based multithreaded service that uses Pthreads, channels, and TensorRT to parallelize deep‑learning inference tasks, thereby reducing latency and dramatically increasing throughput for AI applications such as facial‑recognition access control systems.
AI inferenceC++Concurrency
0 likes · 11 min read

The article explains how a slow addComment API caused by a synchronous email‑sending step was optimized by converting the email operation to an asynchronous task using PHP's pthreads extension, detailing the problem analysis, installation of pthreads on Windows, configuration changes, and a working test example.
Multithreadingpthreads
0 likes · 6 min read

This article explains how to compile C/C++ code to WebAssembly with pthread support, run multithreaded WebAssembly modules in Chrome using Origin Trials, and provides step‑by‑step instructions, example code, and configuration details for developers.
ChromeEmscriptenWebAssembly
0 likes · 8 min read
