Comments (6)
我看到fiber的文档里有写到fiber_tbox有多消费者惊群的问题,所以在多线程多协程环境下需要用什么办法来避免这个问题呢
你是指哪篇文章?
from acl.
我看到fiber的文档里有写到fiber_tbox有多消费者惊群的问题,所以在多线程多协程环境下需要用什么办法来避免这个问题呢
你是指哪篇文章?
https://github.com/acl-dev/acl/blob/master/blog/fiber.md
这里写的
from acl.
如果多个消费者协程在不同的线程中就可能存在惊群问题,如果多个消费者在同一个线程中则一般不会产生惊群现象。
from acl.
就是多个线程😣 就是看到文章里有写,但是没怎么提到有什么办法避免,只能自己指定提交到某一个线程吗
from acl.
就是多个线程😣 就是看到文章里有写,但是没怎么提到有什么办法避免,只能自己指定提交到某一个线程吗
可以给每个线程创建一个 box,从各自的box里接收消息。
from acl.
好的,谢谢,明白了
from acl.
Related Issues (20)
- 安装报错 HOT 9
- acl::log::msg4与soci::logger::msg4冲突 HOT 3
- sourceforge上的包5年没更新啦 HOT 1
- 向导工具生成http服务项目 windows编译运行正常 linux下链接错误 HOT 6
- linux环境下run_alone调试运行有问题 HOT 3
- acl_fiber_signum issue HOT 1
- Some doubts HOT 4
- 使用redis库读取返回乱码 HOT 3
- 支持https://redis.io/docs/latest/develop/use/keyspace-notifications/吗 HOT 1
- socket_stream是协程安全的吗 HOT 5
- ios编译报错 HOT 5
- lib_acl\src\thread\acl_pthread.c 存在截断问题 HOT 1
- fiber在windows上编译报的一些错
- 源码可以改成utf8的吗 HOT 4
- Please support the MinGW compiler HOT 1
- 容器部署问题 HOT 14
- FreeBSD support HOT 5
- Where can I find examples for C? HOT 1
- 有什么方法能强制停止acl::thread_pool中的线程? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acl.