Documentation

The Java™ Tutorials
Hide TOC
Concurrent Collections并发集合
Trail: Essential Java Classes
Lesson: Concurrency
Section: High Level Concurrency Objects

Concurrent Collections并发集合

The java.util.concurrent package includes a number of additions to the Java Collections Framework. java.util.concurrent包包括对java集合框架的许多添加。These are most easily categorized by the collection interfaces provided:这些最容易通过提供的集合接口进行分类:

All of these collections help avoid Memory Consistency Errors by defining a happens-before relationship between an operation that adds an object to the collection with subsequent operations that access or remove that object.所有这些集合都通过定义将对象添加到集合的操作与访问或删除该对象的后续操作之间的“发生在之前”关系来帮助避免内存一致性错误


Previous page: Fork/Join
Next page: Atomic Variables