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

what is the use of threadpool in muduo/base? #432

Open
eternally123 opened this issue Dec 27, 2019 · 0 comments
Open

what is the use of threadpool in muduo/base? #432

eternally123 opened this issue Dec 27, 2019 · 0 comments

Comments

@eternally123
Copy link

i note that in folder muduo/base, there are two classes : Thread( in file thread.h) and ThreadPool( in file ThreadPool.h),
i also note that in folder muduo/net, there are two classes : EventLoopThread( in file EventLoopThread.h) and EventLoopThreadPool( in file EventLoopThreadPool.h)

After i see muduo frame , i think EventLoopThread and EventLoopThreadPoll are used in multiThread TcpServer model . but what is the use of ThreadPool and Thread in folder muduo/base , i don't know what do they do ... can you tell me which module use class Thread and ThreadPool ......

thanks

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

1 participant