搜索资源列表
LPC2378Ucos2
- 开发环境是在MDK 下LPC2378下的UCOS串口编程,和以前那个相比,改动了启动代码,去掉了系统里面的一个报警提示,并且使用了信号量、邮箱等,初学者使用!还没有使用队列,而且要经过改动才能支持串口的多个数据接收目前一次最多是发8个数据。 函数的测试是上电后,P2.0~P2.7从高变低并发一个字母给串口,从低变高,还有一个外部按键中断,按一下,发1000Bytes数据。从串口发的数据给ARM,ARM返回收到的数据。-Development environment is under the
fanzhuanxinhao
- MyTask、YouTask和ThreeTask 。在主函数中创建任务MyTask。而YouTask和ThreeTask由任务MyTaskTask创建,其优先级分别为2、4、6。这三个任务都要占用资源s,任务YouTask访问时间短一些,在任务MyTask和任务ThreeTask利用while(OSTime<T) {}增加访问时间,T值分别为300,500。MyTask、YouTask和ThreeTask采用OSTimeDly(K)延时等待,K值均为200。这样出现任务优先级反转。为了解决
singnal
- 利用信号量进行多线程通讯 首先在主程序中建立两个线程,然后设置信号量,每个线程循环等待符合要求的信号量,只要满足条件,则线程执行。该例为多线程通讯的简单实例,只是展示了原理-Signal was carried out using multi-threaded communication first in the main program to create two threads, and then set the semaphore for each thread to wait for
pv
- 信号量也称为信号锁,主要应用于进程间的同步和互斥,在用于互斥时,通常作为资源锁。信号量通常通过两个原子操作wait(P)和signal(V)来访问。wait操作使信号量的值+1,signal操作使信号量的值-1。本程序模拟了操作系统的pv操作-Semaphore is also known as signal lock, mainly used in inter-process synchronization and mutual exclusion, are used in mutually
Access
- 在Windows2000环境下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面介绍)的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。 读者-写者问题的读写操作限制(包括读者优先和写者优先) 1) 写-写互斥:不能有两个写者同时进行写操作 2) 读-写互斥:不能同时有一个线程在读,而另一个线程在写。 3) 读-读允许:可以有一个或多个读者在读。 -In Windows2000 environment,
only_ucos_II
- AVR megal128下的ucos_ii,用ICC编译器,建了四个任务,是个纯系统,用来以后做项目时当个基版的。里面就用了一个蜂鸣器。没有关于消息,邮箱,信号量方面的内容.-AVR megal128 under ucos_ii, using ICC compiler, built the four tasks, is a pure system, used to do the project after months when the base version. Which used a bu
procon
- 试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制,windows环境下运行-Test Objective: To study the mechanisms and thread Linux Semaphore producers to achieve concurrency control on consumer issues, windows environment running
sem
- 在类unix中可以方便使用的封装后的信号量操作的接口。-In unix-type can be user-friendly package of the semaphore after the operation interface.
sem
- 信号量的基本操作是我在学习linux编程时写的-Semaphore s basic operation is my linux programming in learning to write the
pthread
- linux下的多线程的创建及信号同步,信号量,互斥量-under linux to create multi-threaded and signal synchronization, semaphores, mutex volume
djkhsw
- LINUX的简单应用,含有串口和网络通信,信号量。-LINUX simple application, containing the serial and network communications, semaphore.
produce_consume
- 模拟进程同步中的进程与线程问题,熟悉信号量的使用及互斥同步过程-Simulation of the process of synchronization of processes and threads problem, familiar with the use of semaphores and mutex synchronization process
Thread2
- 测试两个线程等待信号量的顺序,win32编程-Two threads waiting for the signal to test the volume of the order, win32 programming
cangkuguanlisheji
- 读者与写者的实现,是n个线程之间的信号量的互斥问题 -The reader and the realization of writing is the thread between the n-the Mutex Semaphore problem
1
- 生产者消费者问题资料集。 操作系统里很重要的一个问题,可以帮助更清晰的理解信号量。-Producers of consumer data sets. Operating system in a very important issue, can help to more clearly understand the semaphore.
wsmtp.tar
- 测试LInix环境中的信号量方法的使用以及应用,运用的是gcc的开发以及编译环境,这个代码简洁好用。-Test environment LInix Semaphore methods and applications, using the gcc compiler development and the environment, simple and easy to use this code.
VxWorks
- VxWorks入门例程,包括基于Wind与POSIX的任务调度与通信(信号量、消息队列、管道)。-It is a package of some examples,which includes ones about task scheduling & communication (using semaphore & message queue & pipes) based on Wind & POSIX.
philosopher
- 哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地理解计算机系统中的资源共享、进程同步、死锁等问题,并能熟练地应用信号量来解决生活中的控制流程,即将生活中的控制流程用形式化的方式表达出来。-Dining philosophers problem is that the Dutch scholars Dijkstra classic one of the issues raised, it
producder
- C++语言实现生产者消费者问题 生产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。-C++ language to achieve the producer consumer problem producers- consumers are a classic problem of process synchronization problem, the problem was first proposed by Dijkstra pr
mutex
- uc/OS-ii互斥信号量的处理,大家好好研究啦-uc/OS-ii Mutex Semaphore handling of everyone you carefully study