V2EX  ›  英汉词典

Pthreads

Definition / 释义

Pthreads(POSIX Threads)指 POSIX 标准的线程(多线程)编程接口,常见于类 Unix 系统(如 Linux、macOS)的 C/C++ 并发编程中,用于创建线程、线程同步(互斥锁、条件变量等)与线程管理。

Pronunciation / 发音

/ˈpiːθrɛdz/

Examples / 例句

I used pthreads to run two tasks at the same time.
我用 pthreads 让两个任务同时运行。

In this server, pthreads handle each client connection, and mutexes prevent data races when threads update shared state.
在这个服务器中,pthreads 处理每个客户端连接,并用互斥锁在多个线程更新共享状态时防止数据竞争。

Etymology / 词源

pthreads 来自 POSIX threads 的缩写:其中 P 通常理解为 POSIXthreads 为“线程”。它并不是一个普通词汇,而是计算机领域对一套标准线程 API(如 pthread_createpthread_mutex_lock)的通称。

Related Words / 相关词

Literary Works / 文学与著作示例

  • Programming with POSIX Threads(David R. Butenhof)——以 pthreads 为核心的经典专著
  • Advanced Programming in the UNIX Environment(W. Richard Stevens 等)——讲解 Unix 编程,涉及 pthreads 与相关接口
  • The Linux Programming Interface(Michael Kerrisk)——系统编程权威书,包含 pthreads 与同步原语
  • UNIX Network Programming(W. Richard Stevens)——网络编程中常结合 pthreads 讨论并发服务器模型
  • Linux System Programming(Robert Love)——涵盖 Linux 下线程与并发相关实践(含 pthreads 语境)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1767 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 10:46 · PVG 18:46 · LAX 02:46 · JFK 05:46
♥ Do have faith in what you're doing.