# | Line 64 | Line 64 | import java.util.function.Consumer; | |
---|---|---|
64 | * Multiple threads should not access a {@code PriorityQueue} | |
65 | * instance concurrently if any of the threads modifies the queue. | |
66 | * Instead, use the thread-safe {@link | |
67 | < | * java.util.concurrent.PriorityConsumeringQueue} class. |
67 | > | * java.util.concurrent.PriorityBlockingQueue} class. |
68 | * | |
69 | * <p>Implementation note: this implementation provides | |
70 | * O(log(n)) time for the enqueing and dequeing methods |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |