Monday, September 15, 2008

thread

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

3 comments:

Anonymous said...

buy ambien online buy ambien online cheap - generic ambien 20mg

sleigh said...

sa réponse Chloe Dolabuy découvrez ceci ici sacs à dos de créateurs de répliques voir ici maintenant répliques de sacs ysl

Unknown said...

replica designer bags wholesale a01 i2m98t1s31 replica bags w90 k7y56g2y45 Louis Vuitton replica Bags t26 z1t36j3t12