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

Internal: Multithreading #98

Open
frothga opened this issue Mar 13, 2020 · 0 comments
Open

Internal: Multithreading #98

frothga opened this issue Mar 13, 2020 · 0 comments

Comments

@frothga
Copy link
Collaborator

frothga commented Mar 13, 2020

A simple approach to multithreading would be to put a mutex on the list of objects attached to the current event and have n threads (probably equal to the number of hardware threads) take work from it. If the cost of contention relative to the cost of the work is 1/n or less, then contending for the mutex won't slow the simulation too much. It's worth a try.

@frothga frothga added this to the Release 1.2 milestone Mar 13, 2020
@frothga frothga modified the milestones: Release 1.2, Release 1.3 Feb 4, 2023
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

1 participant