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

如何在创建runtime时候指定workthread #330

Open
xj524598 opened this issue Jan 28, 2025 · 1 comment
Open

如何在创建runtime时候指定workthread #330

xj524598 opened this issue Jan 28, 2025 · 1 comment
Labels
F-feature-request feature request

Comments

@xj524598
Copy link

@xj524598 xj524598 added the F-feature-request feature request label Jan 28, 2025
@ihciah
Copy link
Member

ihciah commented Feb 5, 2025

从设计层面 monoio 并不是负责管理所有 worker。
worker 概念是一个更上层的东西,monoio 直接提供较底层的能力,为上层暴露充分的自由度。你可以手动启动多个 worker(examples文件夹内有对应例子)。
但出于易用性考量,我们提供了宏的形式启动多个thread并运行runtime——这不是必须的,你可以手动展开这个宏查看其生成代码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-feature-request feature request
Projects
None yet
Development

No branches or pull requests

2 participants