Groups
Sign in
Groups
skynet-users
Conversations
About
Send feedback
Help
关于worker线程工作机制优化提议
93 views
Skip to first unread message
samoyedsun
unread,
May 21, 2022, 5:04:00 AM
5/21/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to skynet...@googlegroups.com
通常我们传统的多线程服务器是以多线程忙等处理一个消息队列,也就是以单个消息为单位处理,而skynet用了全局消息队列+二级消息队列,以二级消息队列为单位处理,在逻辑耗时较短的情况下使多线程忙等的时间降低了;感觉可以以多个消息队列为单位处理,使多线程忙等的时间降的更低,比如将 二级消息队列数量/线程数量/N 个二级消息队列作为一组,以一组消息队列为单位处理。大佬感觉如何 :)
Reply all
Reply to author
Forward
0 new messages