next up previous
Next: 3.1 Basic Usage Up: POSH: Python Object Sharing Previous: 2.4 Restrictions on Shared

3 Example Usage

POSH provides functions for declaring shareable types and sharing objects, in addition to some utility functions for process management. Of particular importance is the version of fork() provided by POSH, which should always be used for process creation when POSH is used. The function has the exact same semantics as the standard os.fork(), but performs some initialization tasks that are required by POSH. In addition, POSH defines the convenience functions posh.forkcall(), which executes a function call in a child process, and posh.waitall(), which waits for the completion of all child processes.