Skip to content

Dispatch work to a thread pool #102

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

Closed
dtolnay opened this issue May 17, 2017 · 5 comments
Closed

Dispatch work to a thread pool #102

dtolnay opened this issue May 17, 2017 · 5 comments

Comments

@dtolnay
Copy link
Member

dtolnay commented May 17, 2017

https://docs.rs/threadpool

@dtolnay
Copy link
Member Author

dtolnay commented May 17, 2017

@karan1276 mentioned being interested in working on this in https://github.com/brson/rust-cookbook/issues/24#issuecomment-285923636.

Possible problem statement: "Sort an array of M numbers using N threads"

@karan1276
Copy link

Demo i wrote for that can be found here: https://github.com/karan1276/rust-demo

@dtolnay
Copy link
Member Author

dtolnay commented May 18, 2017

Nice! Are you still working on turning this into a PR or would you need someone else to take over?

@leoyvens
Copy link

I think the example should use the Rayon thread pool, it's a more popular implementation.

@budziq
Copy link
Collaborator

budziq commented May 28, 2017

I'd like to try this one.

It would be drawing a fractal (julia set) to an image with threadpool.

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

No branches or pull requests

4 participants