摘要: 1 线程属性线程属性:pthread_attr_tint pthread_attr_init(pthread_attr_t *attr)int pthread_attr_destroy(pthread_attr_t *attr) pthread_attr_init 为属性对象分配动态内存空间,pth... 阅读全文
posted @ 2014-12-19 21:02 bupt_lyn 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 进程组与进程组ID 获取进程组IDpid_t getpgrp()pid_t getpgid(pid_t pid) 设置进程组IDint setpgid(pid_t pid,pid_t pgid)2 会话 一次登录期间产生的所有进程组都属于同一个会话,会话是进程组的集合 通过setsid可以创建会... 阅读全文
posted @ 2014-12-19 20:35 bupt_lyn 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 线程属性pthread_attr_ttypedefstruct{ int detachstate; 线程分离状态 int schedpolicy; 线程调度策略 structsched_param schedparam; 线程调度参数 int inheritsched; 线程调度继承性 i... 阅读全文
posted @ 2014-12-19 17:04 bupt_lyn 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 线程标识 pthread_t类型int pthread_equal(pthread_t tid1,pthread_t tid2)pthread_t pthread_self()2 创建线程int pthread_create(pthread_t *tid,pthread_attr_t *attr... 阅读全文
posted @ 2014-12-19 16:09 bupt_lyn 阅读(145) 评论(0) 推荐(0) 编辑