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

Any plan to support multi-thread in io.js? #241

Closed
yejingfu opened this issue Jan 7, 2015 · 11 comments
Closed

Any plan to support multi-thread in io.js? #241

yejingfu opened this issue Jan 7, 2015 · 11 comments

Comments

@yejingfu
Copy link

yejingfu commented Jan 7, 2015

I am not sure if it's good idea to bring multi-threading into io.js. However I feel it would be beneficial to CPU-consuming computation. The JXcore is based on node.js, aiming to provide multi-thread supports.
So I am wondering if there is any official plan to have multi-thread in io.js.

@algesten
Copy link

algesten commented Jan 7, 2015

I sincerely hope not.

@brendanashworth
Copy link
Contributor

Well, it already supports multithreading with the cluster module. As far as I'm aware changing it to be multithreaded for everything would mean modifying V8 - unless V8 supports multithreading as it is.

@feross
Copy link
Contributor

feross commented Jan 7, 2015

Spawn multiple node processes if you need this.

@YurySolovyov
Copy link

io.js name kind of suggests what it is for

@quantizor
Copy link

@brendanashworth +1, exactly what that module is meant to do

@yorkie
Copy link
Contributor

yorkie commented Jan 7, 2015

multi-event-loops maybe useful to us rather than threads, because most of users of node/io knows what the event loop is, but doesn't know what a thread does act or just a bit bit acknowledge :(

@tjconcept
Copy link
Contributor

Please don't.

@bnoordhuis
Copy link
Member

I'll close this, there isn't anything directly actionable. io.js may someday add multi-isolate support (what JX does too, I think) but that won't be hugely different from what you can do today with the child_process and cluster modules; it's still going to be share-nothing with explicit message passing.

@basarat
Copy link

basarat commented May 28, 2015

add multi-isolate support (what JX does too, I think)

Yes. Docs : http://jxcore.com/docs/jxcore-feature-multitasking.html The sub-instance is completely separated from the main instance and from the other sub-instances, because they all run in different V8′s contexts/isolates

@mikeal
Copy link
Contributor

mikeal commented May 28, 2015

#1159

@yejingfu
Copy link
Author

Glad to see the work module is now offically implemented in io.js. Thank you!

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