I have the following situation
def f(foo, bar, i):
foo[i] = 42
bar[i] = 76
foo, bar = [[]]*24, [[]]*24
g = partial(f, foo=foo, bar=bar)
... Call f in a multi-threaded way and have foo and bar filled ...
Foo and bar in the parent process could also be filled with objects rather than numericals.
How should I go about and do this in a safe way
This code is enclosed in a class method.