PyDocs

Nav

Concurrent Execution

SyncManager

  • SyncManager(address=None, authkey=None, serializer='pickle', ctx=None, *, shutdown_timeout=1.0)
Subclass of `BaseManager` which supports a number of shared object types.

The types registered are those intended for the synchronization
of threads, plus `dict`, `list` and `Namespace`.

The `multiprocessing.Manager()` function creates started instances of
this class.
Changed in 3.6
  • 3.6: Shared objects are capable of being nested. For example, a shared container object such as a shared list can contain other shared objects which will all be managed and synchronized by the SyncManager.
Members of SyncManager

a

Array
Create an array and return a proxy for it.

b

Barrier
Create a shared threading.Barrier object and return a proxy for it.
BoundedSemaphore
Create a shared threading.BoundedSemaphore object and return a proxy for it.

c

Condition
Create a shared threading.Condition object and return a proxy for it.

d

dict
Create a shared dict object and return a proxy for it.

e

Event
Create a shared threading.Event object and return a proxy for it.

l

list
Create a shared list object and return a proxy for it.
Lock
Create a shared threading.Lock object and return a proxy for it.

n

Namespace
Create a shared Namespace object and return a proxy for it.

q

Queue
Create a shared queue.Queue object and return a proxy for it.

r

RLock
Create a shared threading.RLock object and return a proxy for it.

s

Semaphore
Create a shared threading.Semaphore object and return a proxy for it.
set
Create a shared set object and return a proxy for it.

v

Value
Create an object with a writable value attribute and return a proxy for it.
0 Examples
No examples for multiprocessing.managers/SyncManager.
See Also
No see-alsos for multiprocessing.managers/SyncManager
0 Notes
No notes for SyncManager