其中一个标准的方法是使用所谓的链表。
One of the standard ways is to use what's called a linked list.
清单1给出最基本的并发单向链表接口。
Listing 1 shows the most basic concurrent, singly linked list interface.
例如,链表就是根据其本身定义出来的。
For example, linked lists are defined in terms of themselves.
并发单向链表的设计方法。
让我们来看一些基于链表的递归函数示例。
Let's look at a few examples of recursive functions on linked lists.
这个链表叫做pte链。
我真正想做的是,除以链表的个数。
And what I really wanted to do is, divide by the number of lists.
然后初始化一个查找数据结构,这是一个链表。
A lookup data structure which is a linked list is then initialized.
所有ee被装载在一个链表里。
或者是包含其它有可变的结果的链表。
这么做就允许多个线程同时搜索链表。
Doing so allows for multiple threads to search the list concurrently.
空链表的表示到底是什么呢?
清单5给出链表搜索代码。
所以它将会创建一个链表。
比方说链表中的元素个数。
是distance的链表,非常正确。
是一个链表,谢谢,是一个什么的链表呢?
处理程序链表示一个有序的处理程序清单。
它们被作为链表来使用。
这种资料库称为访问控制链表(ACL)。
我应该除以链表的长度。
链表的优势之一是,您可以使用它们来避免锁定状态。
One advantage of linked lists is that you can use them to avoid locking situations.
当一些线程正在迭代链表时,出现迭代请求。
Iteration requests come in while some threads are iterating the list.
循环链表大多数情况下都有向前或向后指针。
Most of the time circular lists have a front and back Pointers.
使用这种具有链表的散列表可以提供最快速的查询功能。
The use of the hash table with linked list provides the quickest lookup.
这个链表散列表包含有关共享内存日志标记指针的信息。
The linked list hash table contains information about the shared memory logging token pointers.
另外,这些链表的规模也会增加分析问题的难度。
Also, the size of these lists makes it more difficult to analyze the problem.
实际上,零参数构造器就是建立一个这样的空链表。
In fact, the zero-argument constructor sets up just such an empty list.
实际上,零参数构造器就是建立一个这样的空链表。
In fact, the zero-argument constructor sets up just such an empty list.
应用推荐