找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 4322|回复: 4

Reactor框架中有没有方法实现多进程的方式?

[复制链接]
发表于 2007-12-19 21:50:08 | 显示全部楼层 |阅读模式
Reactor范例都是基于thread的,这样子能够比较简便的共享连接等信息,
是否有基于Process的方案呢?
 楼主| 发表于 2007-12-19 21:50:17 | 显示全部楼层
asynchronize completion token design pattern
请参考asynchronize completion token design pattern
 楼主| 发表于 2007-12-19 21:50:32 | 显示全部楼层
Reactor范例都是基于thread的,这样子能够比较简便的共享连接等信息,

是否有基于Process的方案呢?
You mean processed-data-sync ?
 楼主| 发表于 2007-12-19 21:50:43 | 显示全部楼层
可以这样,每个Process里面一个线程,运行Reactor,系统运行多个Process.不过貌似这样的情况不多吧?
 楼主| 发表于 2007-12-19 21:50:52 | 显示全部楼层
Ok, I see what you want, MP instead of MT. It had little to do with reactor pattern and gonna be much more complex than MT.
You have to think about proxy, load-balancing and FT.Basically it's Architector's job, not yours.
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-12-4 16:22 , Processed in 0.017905 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表