z/OS Tools & Language

Expand all | Collapse all

Do we have plan when will we support python multiprocessing

  • 1.  Do we have plan when will we support python multiprocessing

    Posted 01-15-2020 11:57

    hi do we know when we will support python multiprocessing feature, it is currently blocking us to run test cases in parallel, with python2.7, I got error message saying “Multiprocessing is not implemented, because of EDC5257”, what is EDC5257 ? with python 3.6, a simple python program with multiprocessing.Pool feature will hang.



  • 2.  RE: Do we have plan when will we support python multiprocessing

    Posted 02-14-2020 09:44

    That would be very interesting, esp. if it would run on SRBs in order to exploit ZIIP processors like Java can.

    In a Python program, multiprocessing could be fairly easily substituted with threading though not exploiting multiple processors on a z machine:

        try:
            import multiprocessing
            from multiprocessing import Process, Lock, Value
        except:
            print('"multiprocessing" module not available using "threading"')
            from threading import Lock
            from threading import Thread as Process
            class Value(object):
                def __init__(self,typ,val):
                    self.value=val
    

    This seems to run fairly parallel for reads from a database on z/OS - see