首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > linux下的线程操作

linux下的线程操作

  • 资源大小:6.20 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Linux编程 c++ linux 线程 操作

资 源 简 介

Linux系统下的多线程遵循POSIX线程接口,称为pthread。编写Linux下的多线程程序,需要使用头文件pthread.h,连接时需要使用库libpthread.a。顺便说一下,Linux下pthread的实现是通过系统调用clone()来实现的。clone()是Linux所特有的系统调用,它的使用方式类似fork,关于clone()的详细情况,有兴趣的读者可以去查看有关文档说明。展示几个最简单的多线程程序cancel.c,clean.c,create.c,exit.c,cond.c,struct.c,share.c,join.c等最基本的操作

文 件 列 表

thread_create.c
thread_exit.c
thread_id.c
thread_int.c
thread_join.c
thread_mutex.c
thread_sem.c
thread_share.c
thread_signal.c
thread_string.c
thread_struct.c
thread_cancle.c
thread_clean.c
thread_cond.c
VIP VIP
0.170468s