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

Message Passing in Monoio #237

Open
brianshih1 opened this issue Feb 5, 2024 · 2 comments
Open

Message Passing in Monoio #237

brianshih1 opened this issue Feb 5, 2024 · 2 comments
Labels
F-feature-request feature request

Comments

@brianshih1
Copy link

Hello! New to Monoio here. I was wondering how message passing works in monoio.

In Seastar, a core can communicate between cores via calls to submit_to(other_core, [] {...}) (link to Seastar's message passing doc). Is there an equivalent mechanism in monoio?

@brianshih1 brianshih1 added the F-feature-request feature request label Feb 5, 2024
@ihciah
Copy link
Member

ihciah commented Feb 6, 2024

Currently no, there's no worker/thread manager in monoio now. The connections between threads are hidden, but can be used with channel.
Adding something like submit_to should be useful. Before the runtime providing this feature, you can use channel to impl it(remember enable sync feature).

@Miaxos
Copy link
Contributor

Miaxos commented Feb 6, 2024

There is this issue which is about the same kind of subject: #213

I did a little implementation of a way to communicate between thread in monoio here https://github.com/Miaxos/sharded-thread/blob/main/tests/monoio.rs which is using channels backed by sharded-queue if you want to try.

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

3 participants