John Melesky (PDX Python, June 2010)
Otherwise, available from PyPI (>=2.4)
multiprocessing is a huge library, and deserving of a full-fledged talk (or several), rather than a module-of-the-month.
The manager functionality, for example, is elaborate and useful.
multiprocessing is a huge library, and deserving of a full-fledged talk (or several), rather than a module-of-the-month.
The manager functionality, for example, is elaborate and useful (as far as i can tell. i haven't used it. this is still just a motm talk).
multiprocessing is complex, and occasionally slightly hackish. Expect the following:
Process or Poolstart()run()join([timeout])is_alive()terminate()apply(func[, args[, kwds]])apply_async(ditto, plus callback)map, map_async, imap, imap_unorderedclose()terminate()join()See Queue.Queue
empty(), full(), qsize()put(item[, block[, timeout]])put_nowait(item)get([block[, timeout]])get_nowait()send(obj)recv()fileno()close()poll([timeout])send_bytes, recv_bytes, recv_bytes_intoLockValue, Array)Managers, both local and remoteNamespaceListener and ClientA web scraper with Process and Queue