The Wayback Machine - https://web.archive.org/web/20230119202337/https://github.com/python/cpython/issues/101014
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

multiprocessing.managers. SharedMemoryManager should let you name the created object #101014

Open
slerman12 opened this issue Jan 13, 2023 · 0 comments
Labels
expert-multiprocessing type-feature A feature request or enhancement

Comments

@slerman12
Copy link

Python's new truly-shared memory (https://docs.python.org/3/library/multiprocessing.shared_memory.html) is great, however using the SharedMemoryManager is impractical since the created list or numpy array can't be custom-named.

Why would we want to custom-name?

Well, say process 3 creates a new object and process 5 wants to access it. Without a shared naming protocol, this isn't possible. Process 3 has to read the name for its newly created object and somehow signal it to process 5 in order for process 5 to ever know about it and access it.

We should be able to name the objects created with the SharedMemoryManager, with the name= parameter, same as the syntax for creating those objects without the manager.

Thanks,
Sam

@slerman12 slerman12 added the type-feature A feature request or enhancement label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expert-multiprocessing type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants