Re: Looking for an IPC solution
On Thu, 06 Sep 2012 11:23:59 +0200, Gelonida N <email@example.com>
declaimed the following in gmane.comp.python.general:
> My understanding was, that it forks (or whateveri is closest to fork
> under windows) and uses sockets and pickle to communicate between the
In Windows, it starts a whole new program/process image from scratch
-- which is why you MUST use the "if __name__ ==..." system, since the
subprocess to run has to import the entire module, and you DON'T want it
to execute the code the creates a subprocess recursively. Whereas a
"fork" OS would have the subprocess starting with the statement
following the creation logic.
Note that this difference mainly applies to how the processes are
themselves are created... How the library wraps shared data is possibly
different (I've never understood how a "fork" process can avoid memory
conflicts if it has write access to common virtual memory blocks).
mmap is probably the closest shared memory feature available from
Python, but managing the memory file contents is not the simplest.
Wulfraed Dennis Lee Bieber AF6VN
|All times are GMT. The time now is 04:56 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.