Top-rated recipes tagged "mmap"http://code.activestate.com/recipes/tags/mmap/top/2008-02-28T22:22:18-08:00ActiveState Code RecipesRun a function in a separate (forked) process without blocking (Python) 2008-02-28T22:22:18-08:00Gary Eakinshttp://code.activestate.com/recipes/users/470921/http://code.activestate.com/recipes/550801-run-a-function-in-a-separate-forked-process-withou/ <p style="color: grey"> Python recipe 550801 by <a href="/recipes/users/470921/">Gary Eakins</a> (<a href="/recipes/tags/fork/">fork</a>, <a href="/recipes/tags/mmap/">mmap</a>, <a href="/recipes/tags/process/">process</a>). Revision 2. </p> <p>A procedure that runs a function asynchronously in a forked process (Availability: Macintosh, Unix). The return from the specified function is written into an anonymous memory map (mmap: requires +Python 2.5). This can be useful for releasing resources used by the function such as memory, updating a gui or cli widget, or other weirdness.</p>