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

ST的多线程优化,参考dart的isolate机制 #10

Closed
watchpoints opened this issue Mar 12, 2020 · 2 comments
Closed

ST的多线程优化,参考dart的isolate机制 #10

watchpoints opened this issue Mar 12, 2020 · 2 comments

Comments

@watchpoints
Copy link

watchpoints commented Mar 12, 2020

看了高性能、高并发、高扩展性和可读性的网络服务器架构:StateThreads文章
st 只是模拟线程的行为,在单核上性能比较好,
如果纯计算话,不如当线程了
在多核呢?看相关代码只提到vp 虚拟处理器概念
但是具体如何使用呢?

vp初始化先创建idle thread,然后根据I/O事件驱动其它threads,这就是ST的多核架构。

@winlinvip
Copy link
Member

多核可以参考dart的isolate。

@winlinvip winlinvip changed the title StateThread的模型是EDSM的高性能和高并发 ST的多线程优化,参考dart的isolate机制 Nov 2, 2020
@winlinvip
Copy link
Member

Dup to #19

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