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

Threading #3

Open
randy408 opened this issue Sep 12, 2020 · 0 comments
Open

Threading #3

randy408 opened this issue Sep 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@randy408
Copy link
Collaborator

randy408 commented Sep 12, 2020

Lua has a GIL which means calling into a VM from multiple threads will always result in locking. To get around this most threading implementation e.g. effil create their own OS threads with separate VM's.

Worker threads will have limitations e.g. require/ecs.import can't be used to reinitialize shared variables in a module because import functions are not idempotent, the modules have to be copied to/shared with the worker states.

Torch threads seem to be more efficient for this.

@randy408 randy408 mentioned this issue Nov 14, 2020
@randy408 randy408 added the enhancement New feature or request label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant