I am looking for a way to pass values(ex integers,arrays) between multiple threads in Python. I understand that this task can be achieved by using the Queue module, but I am not very familiar neither with python or this specific module.
I have the following scenario: each thread needs to do some calculations based on its own data or data from other threads. Also each thread knows what other thread holds the data it needs for a specific job (all threads have an array of all threads, so any thread knows that for a task X he needs to get the data from a specific thread(row,col) from that array).
How can this communication between threads be done using the Queue module or perhaps another technique(the Queue module seemed to be the right thing for this job). Any help is most appreciated. Thanks a lot.