Python Forum
Class variables and Multiprocessing(or concurrent.futures.ProcessPoolExecutor)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class variables and Multiprocessing(or concurrent.futures.ProcessPoolExecutor)
#6
(Nov-12-2021, 09:05 PM)jefsummers Wrote: I also think you are running into problems with the GIL,
Not the problem here as concurrent.futures ProcessPoolExecutor() bypass the GIL,the problem here is as mention that code dos nothing useful.
concurrent.futures Wrote:ProcessPoolExecutor uses the multiprocessing module, which allows it to side-step the Global Interpreter Lock
but also means that only picklable objects can be executed and returned.
Reply


Messages In This Thread
RE: Class variables and Multiprocessing(or concurrent.futures.ProcessPoolExecutor) - by snippsat - Nov-12-2021, 09:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unchangeable variables in a class? Calab 12 1,501 Sep-15-2023, 07:15 PM
Last Post: deanhystad
  Concurrent futures threading running at same speed as non-threading billykid999 13 1,807 May-03-2023, 08:22 AM
Last Post: billykid999
  Weird ProcessPoolExecutor initializer behavior davetapley 2 1,639 Mar-13-2023, 06:49 PM
Last Post: davetapley
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop Xeno 2 1,036 Sep-19-2022, 02:32 AM
Last Post: Xeno
  How to pass variables from one class to another hobbyist 18 10,641 Oct-01-2021, 05:54 PM
Last Post: deanhystad
  Problem with concurrent.futures. thunderspeed 3 2,042 Sep-01-2021, 05:21 PM
Last Post: snippsat
  concurrent.futures help samuelbachorik 2 1,738 Aug-22-2021, 07:20 AM
Last Post: bowlofred
  Acess variables from class samuelbachorik 3 1,895 Aug-20-2021, 02:55 PM
Last Post: deanhystad
  Multiprocessing, class, run and a Queue Object SeanInColo 0 1,527 Jul-12-2020, 05:36 PM
Last Post: SeanInColo
  Class variables menator01 2 1,995 Jun-04-2020, 04:23 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020