文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>thread

thread

时间:2007-06-20  来源:dybbuk

A thread may be created as a joinable thread (the default) or as a detached thread. A joinable thread, like a process, is not automatically cleaned up by GNU/Linux when it terminates. Instead, the thread's exit state hangs around in the system (kind of like a zombie process) until another thread calls pthread_join to obtain its return value. Only then are its resources released. A detached thread, in contrast, is cleaned up automatically when it terminates. Because a detached thread is immediately cleaned up, another thread may not synchronize on its completion by using pthread_join or obtain its return value.

When create thread with pthread_create, the attr argument can also be NULL, in which case default attributes are used: the created thread is joinable (not detached) and has an ordinary (not realtime) scheduling policy.

关于linux 实时性的 好文章
http://blog.tom.com/blog/read.php?bloggerid=993876&blogid=57349
相关阅读 更多 +
排行榜 更多 +
执杖少女惩戒术游戏下载

执杖少女惩戒术游戏下载

角色扮演 下载
章鱼小丸子游戏中文版下载

章鱼小丸子游戏中文版下载

模拟经营 下载
dazzly绚石工坊中文最新版下载

dazzly绚石工坊中文最新版下载

休闲益智 下载