Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

multiprocessing

How to use multiprocessing pool.map with multiple arguments

August 22, 2022 by Magenaut

In the Python multiprocessing library, is there a variant of pool.map which supports multiple arguments?

Categories Python, Q&A Tags multiprocessing, python, python-multiprocessing Leave a comment

Multiprocessing vs Threading Python

August 22, 2022 by Magenaut

for CPU bound work, multiprocessing is always faster, presumably due to the GIL

Categories Python, Q&A Tags multiprocessing, multithreading, python Leave a comment

Python multiprocessing PicklingError: Can’t pickle

August 21, 2022 by Magenaut

I am sorry that I can’t reproduce the error with a simpler example, and my code is too complicated to post. If I run the program in IPython shell instead of the regular Python, things work out well.

Categories Python, Q&A Tags multiprocessing, pickle, python, python-multiprocessing Leave a comment

Can’t pickle when using multiprocessing Pool.map()

August 21, 2022 by Magenaut

I’m trying to use multiprocessing‘s Pool.map() function to divide out work simultaneously. When I use the following code, it works fine:

Categories Python, Q&A Tags multiprocessing, multithreading, pickle, pool, python Leave a comment

RuntimeError on windows trying python multiprocessing

August 21, 2022 by Magenaut

I am trying my very first formal python program using Threading and Multiprocessing on a windows machine. I am unable to launch the processes though, with python giving the following message. The thing is, I am not launching my threads in the main module. The threads are handled in a separate module inside a class.

Categories Python, Q&A Tags multiprocessing, python, windows Leave a comment

How to run functions in parallel?

August 21, 2022 by Magenaut

I researched first and couldn’t find an answer to my question. I am trying to run multiple functions in parallel in Python.

Categories Python, Q&A Tags multiprocessing, multithreading, python Leave a comment

multiprocessing.Pool: When to use apply, apply_async or map?

August 21, 2022 by Magenaut

I have not seen clear examples with use-cases for Pool.apply, Pool.apply_async and Pool.map. I am mainly using Pool.map; what are the advantages of others?

Categories Python, Q&A Tags concurrency, multiprocessing, multithreading, python Leave a comment

Shared-memory objects in multiprocessing

August 20, 2022 by Magenaut

Suppose I have a large in memory numpy array, I have a function func that takes in this giant array as input (together with some other parameters). func with different parameters can be run in parallel. For example:

Categories Python, Q&A Tags multiprocessing, numpy, parallel-processing, python, shared-memory Leave a comment

Shared memory in multiprocessing

August 20, 2022 by Magenaut

I have three large lists. First contains bitarrays (module bitarray 0.8.0) and the other two contain arrays of integers.

Categories Python, Q&A Tags large-data, multiprocessing, python, shared-memory Leave a comment

What are the differences between the threading and multiprocessing modules?

August 20, 2022 by Magenaut

I am learning how to use the threading and the multiprocessing modules in Python to run certain operations in parallel and speed up my code.

Categories Python, Q&A Tags multiprocessing, multithreading, parallel-processing, process, python Leave a comment
Older posts
Page1 Page2 … Page7 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress