虫虫首页|资源下载|资源专辑|精品软件
登录|注册

queue

队列是一种特殊的线性表,是一种先进先出(FIFO)的数据结构。它只允许在表的前端(front)进行删除操作,而在表的后端(rear)进行插入操作。进行插入操作的端称为队尾,进行删除操作的端称为队头。队列中没有元素时,称为空队列。
  • 队列函数queue

    参照栈类模板的例子编写一个队列类模板class <T> queue,私有成员包括:队首指针Front,队尾指针Tail,队列容积max。实现:构造函数queue,复制构造函数queue,析构函数~queue,入队函数In,出队函数Out(每次出队,后面的元素自动前移一位),判队列空函数Empty。并分别用队列类模板定义int和double对象,通过实例调用各个成员函数。

    标签: queue 函数 double class Front Empty 队列 Tail 模板 Out

    上传时间: 2020-05-04

    上传用户:1qw2e3r4t5y6u7i8

  • 基本算法思想 OPT:该算法的基本思想是用二维数组page2[40][2] 的第一列存储装入内存的页面

    基本算法思想 OPT:该算法的基本思想是用二维数组page2[40][2] 的第一列存储装入内存的页面,而第二列用作标记位计数器。每当发生缺页时,就从内存中调出一页,首先将内存中的页面一一与要调入内存中的页面之后的页面比较,如果两个页面不相等,则内存中相应的页面的标记位计数器加一,直至到有相等的页面,则该页面的比较停止,再重复以上操作,直至内存中的页面全部比较完。然后找出内存中页面的标记位最大的页面,而该页就是要置换出来的页。 FIFO: 该算法的基本思想是用队列queue存储内存中的页面,队列的特点是先进先出,与该算法是一致的,所以每当发生缺页时,就从队头删除一页,即队头指针加一,而从队尾加入缺页,队尾指针加一。 LRU: 该算法的基本思想是用二维数组page2[40][2] 的第一列存储装入内存的页面,而第二列用作标记位计数器。每当使用页面时,该页面的标记位计数器加一。发生缺页时,就从内存中页面标记最小的一页,调出该页,并且该页后面的页面在数组中的位置前移,而缺页就放在数组后面。

    标签: page2 OPT 算法 40

    上传时间: 2013-12-25

    上传用户:lwwhust

  • 项目描述: Trickster Streaming Server is a pure Perl MP3 streaming server with a simple Web interface t

    项目描述: Trickster Streaming Server is a pure Perl MP3 streaming server with a simple Web interface that allows you to manipulate and browse the queue. The queue management API is done in a fairly simple UNIX manner, and can be easily extended. Trickster Streaming Server是一个具有简单 Web接口的纯 Perl MP3流服务器,它让你操作并浏览队列。这个队列管理 API 用一种相当简单的UNIX方式来做,并能被容易的扩展。

    标签: Trickster Streaming interface streaming

    上传时间: 2013-12-13

    上传用户:lz4v4

  • The following Philips LPC2k CAN examples in this directory were provided by ESAcademy. LPC2_CANA

    The following Philips LPC2k CAN examples in this directory were provided by ESAcademy. LPC2_CANAll_V110: Receives all CAN messages in a receive queue. LPC2_CANFull_V110: Uses Full-CAN-like reception filtering. LPC2_CANBlinky_V130: Minimal example of MicroCANopen, uses Full-CAN-like reception filtering and implements both Rx and Tx Interrupt Service Routines.

    标签: ESAcademy following directory examples

    上传时间: 2015-04-24

    上传用户:hasan2015

  • The following Philips LPC2k CAN examples in this directory were provided by ESAcademy. LPC2_CANA

    The following Philips LPC2k CAN examples in this directory were provided by ESAcademy. LPC2_CANAll_V110: Receives all CAN messages in a receive queue. LPC2_CANFull_V110: Uses Full-CAN-like reception filtering. LPC2_CANBlinky_V130: Minimal example of MicroCANopen, uses Full-CAN-like reception filtering and implements both Rx and Tx Interrupt Service Routines.

    标签: ESAcademy following directory examples

    上传时间: 2013-12-13

    上传用户:牛津鞋

  • The following Philips LPC2k CAN examples in this directory were provided by ESAcademy. LPC2_CANA

    The following Philips LPC2k CAN examples in this directory were provided by ESAcademy. LPC2_CANAll_V110: Receives all CAN messages in a receive queue. LPC2_CANFull_V110: Uses Full-CAN-like reception filtering. LPC2_CANBlinky_V130: Minimal example of MicroCANopen, uses Full-CAN-like reception filtering and implements both Rx and Tx Interrupt Service Routines.

    标签: ESAcademy following directory examples

    上传时间: 2014-01-06

    上传用户:zukfu

  • This book provides information about the concepts and procedures needed by a developer of messaging

    This book provides information about the concepts and procedures needed by a developer of messaging applications in a Sun™ ONE Message queue (MQ) environment. This preface contains the following sections: • Audience for This Guide • Organization of This Guide • Conventions • Other Documentation Resources

    标签: information procedures developer messaging

    上传时间: 2013-12-14

    上传用户:netwolf

  • 算法结构的编程

    算法结构的编程,用stack和queue的算法,c++的编程

    标签: 算法 编程

    上传时间: 2013-12-29

    上传用户:685

  • SQL Server 2005 Service Broker (SSB) is an asynchronous messaging technology built into SQL Server.

    SQL Server 2005 Service Broker (SSB) is an asynchronous messaging technology built into SQL Server. With SSB, you essentially get the power of messaging technologies like Microsoft Message queue (MSMQ) combined with the relational database capabilities of SQL Server, all controlled with Transact SQL statements

    标签: Server asynchronous technology SQL

    上传时间: 2013-12-12

    上传用户:koulian

  • 一个简单实用的开源C++消息中间件SAFMQ - [软件开发] - [开源 消息中间件 SAFMQ ] 2006-11-23 在很多网络应用中

    一个简单实用的开源C++消息中间件SAFMQ - [软件开发] - [开源 消息中间件 SAFMQ ] 2006-11-23 在很多网络应用中,尤其那些服务器有时不在线的应用中,将客户端的数据变更按照产生顺序同步到服务器的操作是比较复杂的。为了解决这种问题,可以采用消息中间件产品(例如Windows的MSMQ还有IBM的MQ),但是这种产品比较庞大而且花费不少,对于小规模应用而言没有必要。 SAFMQ(全称为Store and Forward Message queue)是一个简单的消息中间件,采用C++编写,采用Apache授权机制。截至2006年11月SAFMQ的的版本为0.5.2,发布于2006年9月。目前版本具有如下的功能: 1. 提供多队列、多优先级的消息转发服务。 2. 支持文本、二进制的消息类型。 3. 支持转发功能,即多个消息中间件之间的消息转发。 4. 支持事务操作 5. 支持Java、PHP客户端 6. 支持SSL加密 7. 支持用户权限 8. 支持对消息的标记 9. 支持TTL(Time To Live)时间戳

    标签: SAFMQ 2006 开源 11

    上传时间: 2013-12-06

    上传用户:alan-ee