About 50 results
Open links in new tab
  1. How to use multiprocessing queue in Python? - Stack Overflow

    I'm having much trouble trying to understand just how the multiprocessing queue works on python and how to implement it. Lets say I have two python modules that access data from a shared file, let'...

  2. multiprocessing vs multithreading vs asyncio - Stack Overflow

    Dec 12, 2014 · Multiprocessing Each process has its own Python interpreter and can run on a separate core of a processor. Python multiprocessing is a package that supports spawning processes using …

  3. How can I get the return value of a function passed to multiprocessing ...

    Dec 1, 2016 · In the example code below, I'd like to get the return value of the function worker. How can I go about doing this? Where is this value stored? Example Code: import multiprocessing def …

  4. How to use multiprocessing pool.map with multiple arguments

    19 There's a fork of multiprocessing called pathos (note: use the version on GitHub) that doesn't need starmap -- the map functions mirror the API for Python's map, thus map can take multiple arguments. …

  5. Multiprocessing vs Threading Python - Stack Overflow

    Apr 29, 2019 · I am trying to understand the advantages of multiprocessing over threading. I know that multiprocessing gets around the Global Interpreter Lock, but what other advantages are there, and …

  6. Python multiprocessing: How to know to use Pool or Process?

    Python multiprocessing: How to know to use Pool or Process? Asked 10 years, 8 months ago Modified 6 years, 1 month ago Viewed 93k times

  7. python - multiprocessing: How do I share a dict among multiple ...

    Jul 26, 2011 · A program that creates several processes that work on a join-able queue, Q, and may eventually manipulate a global dictionary D to store results. (so each child process may use D to …

  8. Concurrent.futures vs Multiprocessing in Python 3

    Dec 25, 2013 · Python 3.2 introduced Concurrent Futures, which appear to be some advanced combination of the older threading and multiprocessing modules. What are the advantages and …

  9. Setting global variables for python multiprocessing

    Aug 27, 2025 · Technically speaking it is not possible to set global variables in the way you are thinking with multiprocessing since each process is completely independent. Each process basically makes …

  10. python - multiprocessing fork () vs spawn () - Stack Overflow

    Sep 28, 2020 · There's a tradeoff between 3 multiprocessing start methods: fork is faster because it does a copy-on-write of the parent process's entire virtual memory including the initialized Python …