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

old_version_0.1的线程个数问题 #33

Open
liuyj2017 opened this issue Jul 2, 2019 · 2 comments
Open

old_version_0.1的线程个数问题 #33

liuyj2017 opened this issue Jul 2, 2019 · 2 comments

Comments

@liuyj2017
Copy link

你好!我在调试old_version_0.1的时候发现在gdb start之后就有了两个线程,一个是主线程执行main函数,一个线程执行poll的系统调用,请问第二个线程是怎么回事呢?

@linyacool
Copy link
Owner

@liuyj2017 应该不止两个吧,默认是有5个线程的,1个主线程,线程池里4个

@liuyj2017
Copy link
Author

liuyj2017 commented Jul 3, 2019

调试看到6个线程,除了一个主线程,4个工作线程外,还有1个显示在poll里面
图片

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

2 participants