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

redis,tcp,http的server,是公用一个event_loop, 还是 每个都单独new一个好? #19

Open
zzh442856860 opened this issue Feb 4, 2017 · 3 comments

Comments

@zzh442856860
Copy link

redis,tcp,http的server,是公用一个event_loop, 还是 每个都单独new一个好?

@sniperHW
Copy link
Owner

sniperHW commented Feb 5, 2017

弄懂evnet_loop什么你自然就知道怎么的场景怎么使用 event_loop

@zzh442856860
Copy link
Author

您要是方便,直接告诉我 怎么应用就好; 我自己理解,事倍功半,看了几遍,也没理解。
我从应用中,再来研究底层,更好理解。

@sniperHW
Copy link
Owner

sniperHW commented Feb 6, 2017

用一个就行了,具体原理不在代码中。你需要看别的书,例如陈硕的那本。还有epoll,kqueue的原理。

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