会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
My Blog
博客园
首页
新随笔
联系
管理
订阅
2026年4月16日
初识线程, 常用的 `pthread` 系列接口介绍
摘要: 现在, 什么也别问, 先看代码和现象. 代码: #include <stdio.h> #include <unistd.h> #include <pthread.h> void * task(void * args) { while (1) { printf("这是一个新线程\n"); //让它打印
阅读全文
posted @ 2026-04-16 23:09 codels
阅读(31)
评论(0)
推荐(0)