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

queue

队列是一种特殊的线性表,是一种先进先出(FIFO)的数据结构。它只允许在表的前端(front)进行删除操作,而在表的后端(rear)进行插入操作。进行插入操作的端称为队尾,进行删除操作的端称为队头。队列中没有元素时,称为空队列。
  • I use C to implement thread operating,include initiallize,fork,yield,exit,kill. You should have driv

    I use C to implement thread operating,include initiallize,fork,yield,exit,kill. You should have driver to use this library. I choose array for ready queue,and strcut for Thread Control Block.

    标签: initiallize implement operating include

    上传时间: 2016-01-25

    上传用户:xc216

  • map identification laquo yuan Problem description : the digital image processing of an image often e

    map identification laquo yuan Problem description : the digital image processing of an image often expressed as a macute M pixel matrix. Each pixel value is 0 or 1. The value of 0 pixel image, said background, and the value of a pixel image, said a map of a million, usually called map million pixels. When a pixel in another pixels above, below, left or right, said that two adjacent pixels of the pixel. An image of the pixels belonging to the same map yuan, instead of adjacent pixels belonging to different map yuan. Figure yuan identification of problems is right for the given image pixel map marking yuan, making the same map billion yuan pixel map of the same markings and different map billion yuan pixel map of their marks are different. Trial queue abstract data type design solut

    标签: image identification description processing

    上传时间: 2013-12-15

    上传用户:15736969615

  • μC/OS从1992年开始为人们熟悉

    μC/OS从1992年开始为人们熟悉,到现在已经发展为μC/OS-II。ΜC/OS-II最多支持56个任务,其内核为占先式,总是执行就绪态的优先级最高的任务,并支持Semaphore(信号量)、Mailbox(邮箱)、Message queue(消息队列)等多种常用的进程间通信机制。与大多商用RTOS不同的是,μC/OS-II公开所有的源代码,并可以免费获得,对商业应用收取少量License费用。

    标签: 1992 OS

    上传时间: 2016-03-10

    上传用户:希酱大魔王

  • 定时中断程序

    定时中断程序,源码的注释十分详细,具体功能如下: 1.Frame 实现能有效降低VxWorks 内存管理内部/外部碎片的机制。 2. Frame 实现为系统提供软定时器功能的机制,定时器timeout 信息以message 或其他快捷有效方式通知定时器申请者(Task)。 3. 参考实验一要求,系统中每个Task 拥有自己的Message queue,以此方式作为系统的消息驱动基础。 4. 系统中各Task 应使用同一类型框架,即统一的Task 框架。 5. 系统内实体(Task/ISR)间传递的消息应有统一格式(消息头+消息体),可分短消息和长消息,但消息头须至少包含消息ID。系统内所有消息均有其唯一ID 标识。

    标签: 定时中断 程序

    上传时间: 2016-04-02

    上传用户:BOBOniu

  • 练习并掌握多任务实时操作系统下Task 调度、Task 间主要通信手段(信号量、消息队列等)、RISC 处理器 I/O 端口控制等内容

    练习并掌握多任务实时操作系统下Task 调度、Task 间主要通信手段(信号量、消息队列等)、RISC 处理器 I/O 端口控制等内容,并形成嵌入式实时应用软件的良好编程习惯。创建多Task,为每个Task 创建私有的Message queue,每个Task 只通过自己的私有Message queue 接收消息;Task 间消息通信通过向对方私有Messagequeue 发送消息完成。 Task1:管理Task。负责系统启动时同步系统中其他Task 的启动同步,利用信号量的semFlush()完成。同时接收各Task 的告警信息,告警信息需编号以logmsg 方式输出。本task 负责系统结束时的Task 删除处理。 Task2:console 命令行接收Task。接收并分析console 发来的命令行及参数。自行设置5 种以上命令,并根据命令的内容向Task3 或/及Task4 发送激励消息。同时实现系统退出命令,使系统采用适当方式安全退出。收到非法命令向Task1告警。 Task3:Led 控制Task。接收Led 控制消息(命令),自定义Led 显示方式表现命令执行情况。本task 应负责led 相关I/O port 初始化。收到非法led 控制命令向Task1 告警。 Task4:console 输出Task。接收需打印输出的字串消息(命令),输出到console。收到长度为0 或超常字串向Task1 告警。

    标签: Task RISC 多任务 信号量

    上传时间: 2016-04-12

    上传用户:iswlkje

  • C++STL STL(Standard Template Library

    C++STL STL(Standard Template Library,标准模板库)是惠普实验室开发的一系列软件的统称。它是由Alexander Stepanov、Meng Lee和David R Musser在惠普实验室工作时所开发出来的。现在虽说它主要出现在C++中,但在被引入C++之前该技术就已经存在了很长的一段时间。 STL的代码从广义上讲分为三类:algorithm(算法)、container(容器)和iterator(迭代器),几乎所有的代码都采用了模板类和模版函数的方式,这相比于传统的由函数和类组成的库来说提供了更好的代码重用机会。在C++标准中,STL被组织为下面的13个头文件:<algorithm>、<deque>、<functional>、<iterator>、<vector>、<list>、<map>、<memory>、<numeric>、<queue>、<set>、<stack>和<utility>。以下笔者就简单介绍一下STL各个部分的主要特点。

    标签: STL Standard Template Library

    上传时间: 2016-06-19

    上传用户:cylnpy

  • 文件及文件夹说明 ==========================================================================================

    文件及文件夹说明 =============================================================================================== \arm\ uC/OS-II移植代码 \SOURCE\ uC/OS-II源码保存在该文件夹 \HostMassLib\ HostMassLib驱动库相关文件存放的文件夹 \HostMassLib\读写U盘模块驱动使用手册.pdf 驱动库使用手册 \UDiskDemo\ 读写U盘驱动演示工程保存的文件夹 \UDiskDemo\queue UART0驱动使用到的队列文件 \UDiskDemo\uart0 UART0驱动源文件 \UDiskDemo\HostMassLib HostMassLib驱动库相关文件存放的文件夹 \UDiskDemo\src\ 工程模板创建文件 \UDiskDemo\src\main.c 工程主文件,main函数及各任务在该文件中创建及初始化 \UDiskDemo\src\OS_CFG.H uC/OS-II配置文件 \UDiskDemo\src\config.h 本工程配置文件 \UDiskDemo\src\target.c 目标文件,目标系统初始化在该文件中处理 \UDiskDemo\src\Startup.s LPC2200起动文件 \UDiskDemo\src\IRQ.s 中断句柄设置文件

    标签:

    上传时间: 2017-01-02

    上传用户:chenlong

  • 迷宫问题

    迷宫问题,分别用深度和广度优先遍历解决。其中stack用链表实现,queue用数组实现。描述见pdf文件。

    标签: 迷宫

    上传时间: 2017-01-22

    上传用户:hakim

  • Learn how to: * Tokenize a null-terminated string * Create a search and re

    Learn how to: * Tokenize a null-terminated string * Create a search and replace function for strings * Implement subtraction for string objects * Use the vector, deque, and list sequence containers * Use the container adaptors stack, queue, and priority_queue * Use the map, multimap, set, and multiset associative containers * Reverse, rotate, and shuffle a sequence * Create a function object * Use binders, negators, and iterator adapters * Read and write files * Use stream iterators to handle file I/O * Use exceptions to handle I/O errors * Create custom inserters and extractors * Format date, time, and numeric data * Use facets and the localization library * Overload the [ ], ( ), and -> operators * Create an explicit constructor * And much, much more

    标签: null-terminated Tokenize Create string

    上传时间: 2014-01-18

    上传用户:yph853211

  • This is a Switch simulation... with 4 types of switches... and also we have average simulation tim

    This is a Switch simulation... with 4 types of switches... and also we have average simulation time over these 4 switches 1. No queue 2. Input queue 3. Input queue with iterative 4. Output queue

    标签: simulation switches average Switch

    上传时间: 2017-05-20

    上传用户:徐孺