print(counter_proxy.get_value(
    ), 't%s' % thread_id, multiprocessing.current_process().name)
return counter_proxy

def main():
    manager = Manager()
counter = manager.Counter()
pool = multiprocessing.Pool(multiprocessing.cpu_count())
for i in range(10):
    pool.apply(func=update, args=(counter, i))
pool.close()
pool.join()
print('Should be 10 but is %s.' % counter.get_value())
if __name__ == '__main__':
    main()
Как я могу разделить класс между процессами в Python?