摘要: 参考文献: [1] https://computing.llnl.gov/tutorials/pthreads/ 温故知新 在 OS 中,每个进程都独立地拥有: Process ID, process group ID, user ID, and group ID Environment Worki 阅读全文
posted @ 2020-11-16 20:34 sinkinben 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 本文主要介绍如何通过 pthread 库进行多线程编程,并通过以下例子进行说明。 基于莱布尼兹级数计算 \(\pi\) . 多线程归并排序 参考文章: [1] https://computing.llnl.gov/tutorials/pthreads API 介绍 pthread_create 作用 阅读全文
posted @ 2020-11-16 20:30 sinkinben 阅读(2329) 评论(0) 推荐(2) 编辑