# parallel_domains
This module contains helper classes to manage domains for parallel compurations.
Domain specification
# ParallelDomain
Base class for creating and launching n domains in separate processes. Each domain listens for incoming domain requests. Each request can indicate which domain should serve it, otherwise the first available domain i is chosen and its id is returned to the incoming request.
# Constructor ParallelDomain
ParallelDomain(
domain_factory,
lambdas = None,
nb_domains = 4,
ipc_notify = False
)
Initialize self. See help(type(self)) for accurate signature.
# PipeParallelDomain
This class can be used to create and launch n domains in separate processes. Each domain listens for incoming domain requests. Each request can indicate which domain should serve it, otherwise the first available domain i is chosen and its id is returned to the incoming request.
# Constructor PipeParallelDomain
PipeParallelDomain(
domain_factory,
lambdas = None,
nb_domains = 4,
ipc_notify = False
)
Initialize self. See help(type(self)) for accurate signature.
# ShmParallelDomain
This class can be used to create and launch n domains in separate processes with shared memory between the Python processes. Each domain listens for incoming domain requests. Each request can indicate which domain should serve it, otherwise the first available domain is chosen and its id is returned to the incoming request.
# Constructor ShmParallelDomain
ShmParallelDomain(
domain_factory,
shm_proxy,
lambdas = None,
nb_domains = 4,
ipc_notify = False
)
Initialize self. See help(type(self)) for accurate signature.