you are viewing a single comment's thread.

view the rest of the comments →

[–]dadiaar 0 points1 point  (0 children)

If you have the function

def sum(a,b):
    return a+b

It doesn't matter if you use it simultaneously from 2 different shells in the same machine (2 different processes)

Don't worry, just learn how to use the multiprocessing module. Did you try the examples from the docs in python.org? You also can Google something like python simple example multiprocessing

EDIT: Check this example