queue function for Multiprocess Priority Queue in python with SyncManager class
问题 I wanted to implement multiprocessing priorityqueue . I found this answer :- Strange Queue.PriorityQueue behaviour with multiprocessing in Python 2.7.6 by Dano After I implemented this . I could use .get() and .put() function for my Priority Queue but when i used .queue to print the current elements in the queue it gave me an error code:- class MyManager(SyncManager): pass def get_manager(): MyManager.register("PriorityQueue", PriorityQueue) # Register a shared PriorityQueue m = MyManager() m