Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么线程不用设置成游离态呢? #14

Open
UKeeySDis opened this issue Apr 26, 2017 · 4 comments
Open

为什么线程不用设置成游离态呢? #14

UKeeySDis opened this issue Apr 26, 2017 · 4 comments

Comments

@UKeeySDis
Copy link

如题,这种多线程的网络服务器代码,没有收回线程,为什么不用设置成游离态呢?求大神解答。

@chenpoyang
Copy link

发现一个问题,线程没有join, 用ctrl-c结束httpd后,成了僵尸进程,无法杀掉。

@lanthree
Copy link

@UKeeySDis
线程需要特殊回收?线程游离态是什么?

@lanthree
Copy link

@chenpoyang
线程怎么变成的进程?

@changyl
Copy link

changyl commented Jan 15, 2020

刚学习也发现这个问题了,还有一种解决方法pthread_detacd()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants