文件名称:homework02-LinkedQueue
-
所属分类:
- 标签属性:
- 上传时间:2013-03-27
-
文件大小:1.68kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
ConcurrentLinkedQueue是Queue的一个线程安全实现。
它是一个基于链接节点的无界线程安全队列。此队列按照 FIFO(先进先出)原则对元素进行排序。队列的头部 是队列中时间最长的元素。
队列的尾部 是队列中时间最短的元素。新的元素插入到队列的尾部,队列获取操作从队列头部获得元素。
当多个线程共享访问一个公共 collection 时,ConcurrentLinkedQueue 是一个恰当的选择。此队列不允许使用 null 元素。
-ConcurrentLinkedQueue is a thread-safe Queue achieve. It is an unbounded thread-safe queue based on linked nodes. This queue elements are sorted according to the FIFO (first-in, first-out) principle. The head of the queue is the element of the queue the longest time. The tail of the queue is the shortest queue elements. The new element is inserted into the end of the queue, the queue retrieval operations obtain elements at the head of the queue. When multiple threads share access to a public collection, ConcurrentLinkedQueue is an appropriate choice. This queue does not permit null elements.
它是一个基于链接节点的无界线程安全队列。此队列按照 FIFO(先进先出)原则对元素进行排序。队列的头部 是队列中时间最长的元素。
队列的尾部 是队列中时间最短的元素。新的元素插入到队列的尾部,队列获取操作从队列头部获得元素。
当多个线程共享访问一个公共 collection 时,ConcurrentLinkedQueue 是一个恰当的选择。此队列不允许使用 null 元素。
-ConcurrentLinkedQueue is a thread-safe Queue achieve. It is an unbounded thread-safe queue based on linked nodes. This queue elements are sorted according to the FIFO (first-in, first-out) principle. The head of the queue is the element of the queue the longest time. The tail of the queue is the shortest queue elements. The new element is inserted into the end of the queue, the queue retrieval operations obtain elements at the head of the queue. When multiple threads share access to a public collection, ConcurrentLinkedQueue is an appropriate choice. This queue does not permit null elements.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
09382009-古志荣-homework02-LinkedQueue/LinkedQueue.cpp
09382009-古志荣-homework02-LinkedQueue/LinkedQueue.h
09382009-古志荣-homework02-LinkedQueue/main.cpp
09382009-古志荣-homework02-LinkedQueue
09382009-古志荣-homework02-LinkedQueue/LinkedQueue.h
09382009-古志荣-homework02-LinkedQueue/main.cpp
09382009-古志荣-homework02-LinkedQueue
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.