Sharing Queue Between Threads Running In Different Modules
I have some modules in different packages for my project. This project requires several threads which might be started in different modules, and I intend to use queues for the inte
Solution 1:
A Queue is not different from any other object, in that if it is defined at module level in one module you can import that module and access it directly:
import ModuleA
# now ModuleA.myQueue is the Queue object created there
Post a Comment for "Sharing Queue Between Threads Running In Different Modules"