码迷,mamicode.com
首页 >  
搜索关键字:implement queue    ( 10759个结果
Priority Queues
由小到大#include #include #include using namespace std;int main(){ priority_queue , greater > q; q.push(3); q.push(2); q.push(1); q.push(7);while ( !...
分类:其他好文   时间:2014-07-30 00:46:32    阅读次数:214
Linux Modules Introduction
Modules are small kernel extensions ,that may be loaded and unloaded at will● Can implement drivers, filesystems, firewall,and more● Are located under...
分类:系统相关   时间:2014-07-29 20:53:52    阅读次数:235
C# 一个简易的Producer-Consumer工具类
一、关于本文 本文中实现的PCHelper类是一个简易的Producer-Consumer操作工具类。该类可以实现如下目标:由多个线程向其中的一个Queue中写入数据,同时由多个线程负责接收Queue中数据进行处理。 二、工具类代码 ...
分类:其他好文   时间:2014-07-29 18:27:32    阅读次数:252
队列的基本运算实现
队列(queue) 队列是一种先进先出(first in first out,FIFO)的线性表。它只允许在表的一端(队尾/rear)插入元素,而在另一端(队头/front)删除元素。插入操作称为入队或进队,删除操作称为出队或离队。队列示意图如下: 1、 顺序队 队列的顺序存储结构需要使用一个数组和两个整型变量来实现,数组用于存储队列中的所有元素,两个整型变量分别用于存储队头元素...
分类:其他好文   时间:2014-07-29 15:12:48    阅读次数:251
HDU - 2604 Queuing (矩阵快速幂)
Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our daily life. There are many people lined up at the lunch time. ...
分类:其他好文   时间:2014-07-29 14:47:38    阅读次数:268
linux c socket 源码案例
service端 #include #include #include #include #include #include #include #include #include #include #define MYPORT 8887 #define QUEUE 20 #define BUFFER_SIZE 1024 int main() { ///定...
分类:系统相关   时间:2014-07-29 14:21:40    阅读次数:285
队列实现 (双向循环链表 C++)
队列是很简单的,但是用数组实现可能更好点。。(其实我觉得数组在多个队列的时候更难) 然后我是第一次写双向循环链表。指向太乱了。 我这里是按照自己的想法,建立了一个头节点,一个尾节点,然后按照队列顺序正向插入到两个节点之间。输出和弹出队列的时候从后面操作。 下面上代码: // // main.cpp // queue // // Created by Alps on 1...
分类:编程语言   时间:2014-07-29 14:17:28    阅读次数:196
MS-queue算法相关
简介:多核多线程已经成为当下一个时髦的话题,而无锁编程更是这个时髦话题中的热点话题。Linux内核可能是当今最大最复杂的并行程序之一,为我们分析多核多线程提供了绝佳的范例。内核设计者已经将最新的无锁编程技术带进了2.6系统内核中,本文以2.6.10版本为基础做相关解释。非阻塞型同步(Non-bloc...
分类:其他好文   时间:2014-07-29 14:05:58    阅读次数:252
LeetCode: LRU Cache
LeetCode: LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set....
分类:其他好文   时间:2014-07-29 11:43:36    阅读次数:232
aop:declare-parents注解
http://www.blogjava.net/jackfrued/archive/2010/02/27/314060.html1 2 7 或者用委托代理1 2 7 8 9 目标是 types-matching的类,spring让它实现 implement-interface所指向的...
分类:其他好文   时间:2014-07-29 11:05:16    阅读次数:439
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!