狐狸梦见乌鸦

当坚持成为一种习惯,目标将不在遥远```
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年1月5日

摘要: 复习:线程的3大重点部分线程创建:pthread_create线程退出:pthread_exit线程回收:pthread_detach线程取消:pthread_cancel优点:资源共享互斥量:(mutex)pthread_mutex_initpthread_mutex_lockpthread_mutex_unlockpthread_mutex_destory信号量:semsem_initsem_waitsem_postsem_trywait 获得资源继续往下执行无名管道:pipe64KB有名管道:fifo 7种设备文件中的P即为fifo服务可以通过一个特殊文件p去 open read wri 阅读全文

posted @ 2012-01-05 18:13 灬啊U 阅读(336) 评论(0) 推荐(0) 编辑