查阅Java Api 文档,有关LinkedList有以下解释:
Note that this implementation is not synchronized. If multiple threads access a linked list concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally.
即LinkedList 是线程不同步的。 |
|