搜索资源列表
process
- 简单轮转法进程调度 #include "stdio.h" #define getpch(type) (type*)malloc(sizeof(type)) struct pcb { /* 定义进程控制块PCB */ char name[10] char state /*状态 */ int ntime /*需要的运行时间 */ int rtime /*已执行的时间 */ struct pcb* link /*下一个进程控制块的地址 */
a4_mm1net.project
- opnet仿真平台 工程包,仿真M/M/1队列。两个源发包,PROC接收到之后销毁。 适合初学者了解opnetO(∩_∩)O~-opnet simulation platform engineering package, simulation M/M/1 queue. Two source contract, PROC received after the destruction. Suitable for beginners to understand opnetO (∩ _ ∩
ACE_MFCDevExample
- 使用 ACE 这个庞大的自适应通信环境并不是最佳的工程选择。这个例子以及其中的文档演示了如何使ACE与MFC和谐共处,解决因调用不当导致内存泄露、宽窄字符集接口等问题。 实现的例子使用ACE的Reactor 和 Task 实现了接收者-伴随处理模型,用消息队列实现了大数据包拼接,但要注意一个例程自发自收会发生阻塞, 这与使用API大不相同。ACE 太大了,很恼火。ACE 的 ACE_warppers.sln 使用VC2010进行了改变,添加了UnicodeDebug, UnicdoeRe
Queue
- C++队列操作程序,链表 模板制作,对于理解链表有帮助-C++ queue operating procedures, list templates, and helpful for understanding the list
chulijidiaodu
- 1.设定系统中有五个进程,每一个进程用一个进程控制块表示。 2.输入每个进程的“优先数”和“要求运行时间”。 3.为了调度方便,将五个进程按给定的优先数从大到小连成就绪队列。用一单元指出队列首进程,用指针指出队列的连接情况。 4.处理机调度总是选队首进程运行。采用动态优先数算法,进程每运行一次优先数就减“1”,同时将运行时间减“1”。 5.若某进程运行时间为零,则将其状态置为“结束”,且退出队列。 6.运行所设计程序,显示或打印逐次被选中进程的进程名,以及进程控制块的动态变化
CPPsnake
- 使用vc6.0编写的贪食蛇程序, 具有很多功能,通过画图和贴图实现,贴图使用双缓冲 数据方面,使用队列来实现。效果非常好。内有比较详细的注释。 -Snake written using vc6.0 program has many features and textures achieved by drawing, map data using double buffering, the use of queues to achieve. Very good results. There are
huiwenpanduan
- 利用堆栈和队列分别存储输入的字符串,再分别出栈和出队列实现回文的判断-Stacks and queues are stored using the input string, and then stack and a queue, respectively, to achieve a palindrome judgments
yy2
- 1.定义顺序栈的数据结构 2.编写函数实现的栈的初始化、入栈、出栈、判断栈是否为空的算法,并应用与表达式的括号匹配检测。 3.定义队列的链式数据结构 4.编写函数实现链队列的入队列、出队列算法 -1. Stack data structure defines the order of 2. Write a function to achieve the stack initialization, stack, stack, to determine the stack is em
app0304
- 实现舞会配对,队列的删除与排列,实现先来先找舞伴-Achieve ball pairing, delete the queue and order, to achieve the first to find someone to partner
QueueSim
- 正如我们在第一章所学的,端到端时延中最为复杂和有趣的成分就是排队时延。在这个程序中,可以设置分组发送速率和链路传输速率,你将会看到分组到达和为接受服务而排队。当队列变满时,将会发生分组溢出,也就是丢包-As we learned in the first chapter, end to end delay of the most complex and interesting elements is the queuing delay. In this program, you can set
BankSimulation
- 一个银行业务的事件驱动模拟系统,银行有两种业务:第一,取款或借款;第二,存款或还款。银行有两个窗口,用两个队列实现。事件表用带头结点的单向链表实现。-A banking system of event-driven simulation, the bank has two operations: first, the withdrawal or loan second, deposit or payment. Bank has two windows, with two queue imple
QUEUE
- 这是一个关于循环队列的程序,有小错误,自己寻找改正即可,您可以从中了解方法-This is a circular queue of the program, a small error, they can find to correct, you can learn about the method
anit
- Windows应用程序是基于消息驱动的,任何线程只要注册窗口类都会有一个消息队列用于接收用户输入的消息和系统消息。为了拦截消息,Windows提出了钩子的概念。钩子(Hook)是Windows消息处理机制中的一个监视点,钩子提供一个回调函数。当在某个程序中安装钩子后,它将监视该程序的消息,在指定消息还没到达窗口之前钩子程序先捕获这个消息。这样就有机会对此消息进行过滤,或者对Windows消息实现监控。-Windows application is based on the message-dri
zhan
- 通过对队列的入栈出栈实行的程序,数据结构栈的操作的实验-Through the queue stack a stack to implement the procedures, data structure stack operation experiment
bean.rar
- 输入字符串并按队列和链表输出再排序的小程序,Enter the string in accordance with the output queue and re-sorted list of small programs
huffman.rar
- 用优先队列实现霍夫曼编码,是对贪心算法实现的一个详细代码。输入文件是待编码文件,输出文件是各个字符编码信息。,Priority queue with the realization of Huffman code is a greedy algorithm to achieve a detailed code. Input file is to be encoded file, output file is all character encoding information.
zuidatuan.rar
- 使用优先队列分支限界法对单源最短路径问题求解,最小堆作为优先队列的存储结构 使用最小堆来存储活结点,解空间树是一个子集树,Priority queue using branch and bound method of single-source shortest path problem solving, and the youngest heap as a priority queue to use the smallest heap storage structure to store s
JinChengTongXun.zip
- 包含几个用不同方式(共享内存、socket、FIFO、消息队列等)实现进程通信的小程序,包含详细注释,足以解释各种方式进程通信的实现原理和编程方法,Contains a number of different ways (shared memory, socket, FIFO, message queue, etc.) to achieve the process of the small communications program, including detailed notes, are
TheadQueue.zip
- 使用命令模式和责任链模式以及STL优先级队列实现线程池,可以直接加入现在的任何程序,Responsibility for the use of chain of command model and STL model and the realization of priority queue thread pool, you can direct any proceedings to join now
vc(QUEUE).rar
- 封装完善的C++队列类,可用在串口通讯、网络通讯上等等,Complete package C++ queue class, can be used in serial communications, network communications, etc.