Tag

pthreads

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Dec 5, 2023 · Backend Development

Error Handling in PHP Multithreaded Programming with pthreads

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.

BackendConcurrencyError Handling
0 likes · 5 min read
Error Handling in PHP Multithreaded Programming with pthreads
php中文网 Courses
php中文网 Courses
Oct 14, 2023 · Backend Development

Encapsulated Concurrency Programming in PHP: Multi‑Process, Multi‑Thread, and Coroutine Examples

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.

ConcurrencyMulti-processMulti-thread
0 likes · 5 min read
Encapsulated Concurrency Programming in PHP: Multi‑Process, Multi‑Thread, and Coroutine Examples
Yiche Technology
Yiche Technology
Jan 27, 2022 · Backend Development

C++ Multithreaded Service Architecture for High‑Throughput AI Inference

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 inferenceCConcurrency
0 likes · 11 min read
C++ Multithreaded Service Architecture for High‑Throughput AI Inference
360 Quality & Efficiency
360 Quality & Efficiency
Jan 4, 2019 · Backend Development

Improving addComment API Performance with Asynchronous Email Sending Using PHP pthreads

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.

BackendPHPPerformance
0 likes · 6 min read
Improving addComment API Performance with Asynchronous Email Sending Using PHP pthreads
UC Tech Team
UC Tech Team
Oct 30, 2018 · Frontend Development

Enabling WebAssembly Threads with Pthreads in Chrome via Origin Trials

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.

ChromeEmscriptenOrigin Trial
0 likes · 8 min read
Enabling WebAssembly Threads with Pthreads in Chrome via Origin Trials