A
A
Akshin Yolchuev2020-04-16 13:40:49
Python
Akshin Yolchuev, 2020-04-16 13:40:49

Allocating a shared array to python threads?

Please help, I just can't figure out how to distribute the array between threads, so that each thread would work with its own values ​​and not take the values ​​of other threads.
For example:
a = [1,2,3,4,.....10000]
And there are 10 threads how to make the threads work in place with this array and not take already taken values?
threading library

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question