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

[QUESTION] Thoughts on Multithreading Implementation #13075

Open
Yonhoo opened this issue Feb 20, 2024 · 0 comments
Open

[QUESTION] Thoughts on Multithreading Implementation #13075

Yonhoo opened this issue Feb 20, 2024 · 0 comments

Comments

@Yonhoo
Copy link

Yonhoo commented Feb 20, 2024

The use of a single thread to operate on memory data is to avoid competition for shared resources and the resource consumption caused by multiple threads waiting simultaneously. If we consider using a separate thread for each data structure for operations, it would utilize multiple cores, while maintaining the same behavior as single-threaded when operating on the same object. However, this would increase the CPU's multi-core capabilities, thereby improving throughput, without affecting the read/write operations of other data structures. But this is just my simple speculation, and I'm not sure if the complexity of implementing this approach would be high in reality.

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

1 participant