Re: cvs commit: src/lib/libthread_xu Makefile pthread.map src/li

看板DFBSD_commit作者時間21年前 (2005/02/03 17:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串23/24 (看更多)
On Thu, Feb 03, 2005 at 07:31:51AM +0800, David Xu wrote: > Linux has exit_group() which I think is used to implement exit(). > FreeBSD introduced thr_exit and kse_exit to exit single thread, > and leave orignal exit() to exit whole process. I haven't looked up the semantic of exit_group, but exit() must terminate the whole program. If we want to fully support POSIX signal sematic, we have introduce another exit mechanism to cancel a part of a thread group. Concerning the cleanup of code, waitpid (or waittid) seems to be enough for my reading of the SUS. It should not be a problem to defer the resource freeing until pthread_detach or pthread_join is called. If I read the requirements correctly, one or the other has to be called by the program anyway. Joerg > > David Xu
文章代碼(AID): #120UXQ00 (DFBSD_commit)
討論串 (同標題文章)
完整討論串 (本文為第 23 之 24 篇):
文章代碼(AID): #120UXQ00 (DFBSD_commit)