搜索资源列表
LinuxIPC进程间的通信
- Linux 操作系统提供进程间通信(IPC)机制,用来保证正在执行的进程在内核的协调下能够 共享资源、同步以及交换数据等。Linux 支持大量进程间通信机制,包括信号、等待队列、管道 以及Unix 系统V 中提供的进程间通信机制,如消息队列、信号量和共享内存。-Linux operating system to provide inter-process communication (IPC) mechanism used to ensure that the process is being
BankNumCall
- 这是一个银行排队叫号系统,可以取号排队,等待叫号,还可以知道队列还剩多少人-This is a banking system, called the queue, the queue can take, and wait for the call, but also know how many people left Queue
jcddmnxt
- 进程调度模拟程序 这里没有任何的API调用 只是模拟,我给进程设定了自己的语法,输入一般的字符cpu调用时只是正常输出,如果遇到 $ 表示该进程要调用系统资源后面必须跟一个数字表示占有的时间,如果资源闲置则占有资源否则阻塞,等资源释放在占有资源。进程的调用算法我采用的是时间片轮转算法并有所改进,当某个进程从阻塞队列释放后,他将把以前因为等待资源而被浪费的时间补回来。-scheduling process simulation program here no API calls only simu
200634153047701
- Hospital queue is a regular met are very familiar with the phenomenon. It every day one way or another in the form in front of us. For example, patients to hospitals, pharmacies dispensing to patients, patients with transfusion to the infusion room,
IP&Qos基础
- IP网的QoS技术研究,介绍了排队类型,等待时延等。-IP Network QoS technology research, the type of queue and wait for the time delay.
consumerandconductor
- 模拟生产者和消费者调度算法,实现:用户指定要产生的进程及其类别,存入进入就绪队列 调度程序从就绪队列中提取一个就绪进程运行.如果申请的资源被阻塞则进入相应的等待队列,调度程序调度就绪队列中的下一个进程进程运行结束时,会检查对应的等待队列,激活队列中的进程进入就绪队列.-Simulation producers and consumers scheduling algorithm to achieve: a user-specified to generate the process and ty
PVoperation
- 实验中提供了 5 个信号量(s0-s4)和 20 个进程(pid 0-19) 。在程序运行过程中可以 键入 wait 命令,signal 命令和 showdetail 命令显示每个信号量的状态。具体输入解释如 下: 1) wait 获取信号量操作(P操作) 。 参数: 1 sname 2 pid 。 示例:wait(s1,2) 。进程号为 2 的进程申请名字为 s1 的信号量。 2) signal 释放信号量操作(V 操作) 。 参数 1 sname。
Process
- 任务1:进程调度 1 设计目的 (1)要求学生设计并实现模拟进程调度的算法:时间片轮转及先来先服务。 (2)理解进程控制块的结构。 (3)理解进程运行的并发性。 (4)掌握进程调度算法。 2 设计要求 在多道程序运行环境下,进程数目一般多于处理机数目,使得进程要通过竞争来使用处理机。这就要求系统能按某种算法,动态地把处理机分配给就绪队列中的一个进程,使之运行,分配处理机的任务是由进程调度程序完成的。一个进程被创建后,系统为了便于对进程进行管理,将系统中的所有进程按其状
process_state_change
- 编程模拟进程状态转换过程 分别建立等待队列和就绪队列(单队列、结构不限)。初始 状态时,1个进程处于执行状态,7个进程在等待队列中 ,7个进程在就绪队列中,手工触发任意一种转换,显示 转换发生后的执行进程和两个队列的进程)-Programming analog conversion process states were established and ready queue waiting queue (single-queue structure limit
adc-s3c2410
- 此驱动程序使用了等待队列,信号量,中断注册。另外要特别留意write函数被实现为从用户空间传入数模转换通道号(频道)和分频的值(预分频),read函数则传出转换好的数据。对于预分频传入和读取,本驱动程序并未使用到,当多路转换时,这个值则要充分利用,并且需要一种多路转换的实现方法了。-This driver uses a wait queue, semaphores, interrupt register. Also pay special attention to write function
fifo-queue
- The advantage of using a FIFO structure for a data flow problem is that we can decouple the source and sink processes. Without the FIFO we would have to produce 1 piece of data, then process it, produce another piece of data, then process it. With th
Linux-driver-development8
- 作者:华清远见嵌入式学院。《Linux设备驱动开发详解》(08&09年度畅销榜TOP50)第8章、Linux设备驱动中的阻塞与非阻塞I/O。阻塞和非阻塞I/O是设备访问的两种不同模式,驱动程序可以灵活地支持用户空间对设备的这两种访问方式。8.1节讲解阻塞I/O和非阻塞I/O的区别,实现阻塞I/O的等待队列机制,以及在globalfifo设备驱动中增加对阻塞I/O支持的方法,并进行了用户空间的验证。8.2节讲解设备驱动的轮询(poll)操作的概念和编程方法,poll操作可以帮助用户了解是否能对设备
OpretingSystem_AlarmClock
- Oprating System Alarm Clock Program ,实现Wait queue,基于Block awake,设计并实现 Thread-awake -Oprating System Alarm Clock Program , using Wait queue based the Block awake,designing the Thread-awake
os_2
- 大学时期编的操作系统间进程通讯模仿程序, 模仿消费者生产者问题,设置产品等待队列和需求计数,缓冲区大小为8并可变,可实时观测缓冲区状态-Mimic the procedures of the operating system compiled by the university, inter-process communication, Imitate the problem of consumers to producers, set the wait queue and needs
qudong
- 驱动控制,主要介绍驱动阻塞的两个函数,用以说明驱动的运行状态-wait queue,wait_event_interruptible() wait_event_interruptible()。
lock-free-wait-free-circularfifo
- lock-free, wait-free 先进先出队列,用于多线程编程中-lock-free, wait-free FIFO queue for multithreaded programming
average-wait-time-bank-customers
- 队列的应用--银行客户平均等待时间.使用C语言编写,在控制台界面显示。本程序演示了队列这种数据结构的实际应用。-Queue application- the average wait time bank customers using the C language, the console screen displays. This program demonstrates the queue practical application of this data structure.
anjianqudong
- 设备驱动中主要要设计的数据结构是设备结构体,按键的设备结构体中应包含一个缓冲区,因为多次按键可能无法被及时处理,可以用该缓冲区缓存按键。此外,在按键设备结构体中,包含按键状态标志和一个实现过程中要借助的等待队列、cdev结构体。为了实现软件延时,定时器也是必要的-Device drivers in the main data structures to design a device structure, key device structure should contain a buffer,
virtio_test
- TODO: this pretty bad: we get a cache line bounce for the wait queue on poll and another one on read, plus the read which is there just to clear the current state. -TODO: this is pretty bad: we get a cache line bounce for the wait queue on poll and
queue
- de_queue: dequeue a message the specified queue. handle remote signals, wait for a msg to arrive, dequeue the msg. -de_queue: dequeue a message the specified queue. handle remote signals, wait for a msg to arrive, dequeue the msg.