搜索资源列表
Semaphore
- linux下posix信号量的C语言封装,以及示例代码。可用于线程间和进程间通信。-Provide C-language package of posix semaphore under linux as well as sample code. This package is used for inter-process communication.
process
- 关于Linux下的进程间通信的知识,主要是信号量,消息队列,共享内存等。-On interprocess communication under Linux knowledge, mainly semaphores, message queues, shared memory and so on.
7
- 创建4个线程,其中两个线程负责从文件读取数据到公共的缓冲区,另两个线程从缓冲区读取数据作不同的处理(加和乘运算)。使用信号量控制这些线程的执行。 -Creating 4 threads, two of which thread is responsible for reading data from file buffer to the public, the other two threads to read data from the buffer for different treat
process
- linux-0.11的信号量实现。采用生产者消费者验证-linux-0.11 of the semaphore. Verified by producers and consumers! !
signal
- 这是linux操作系统这门课程中,有关信号量的课件-This is the linux operating system in this course, the courseware semaphore
Linuxmemory
- Linux环境进程间通信共享内存,共享内存可以说是最有用的进程间通信方式,也是最快的IPC形式。两个不同进程A、B共享内存的意思是,同一块物理内存被映射到进程A、B各自的进程地址空间。进程A可以即时看到进程B对共享内存中数据的更新,反之亦然。由于多个进程共享同一块内存区域,必然需要某种同步机制,互斥锁和信号量都可以。-Memory
thread
- 线程信号量实现生产者消费者问题,运用缓冲队列实现缓冲区。-Semaphore thread producers of consumer issues, the use of the buffer queue implementation buffer.
Operating-System
- 这是我在研究生助教期间花了很大心血做的Linux操作系统的课件,范围包括GCC使用 Shell脚本基础 Linux进程、线程、信号、信号量、消息队列以内存共享以及文件系统等方面的知识。-This is my graduate student teaching assistants spent a lot of effort to do during the Linux operating system, courseware, covering the GCC based on Linux us
caozuoxitong
- 1.预备内容:阅读操作系统的进程管理章节内容,对进程的同步和互斥,以及信号量机制度有深入的理解。 2.实践准备:掌握一种计算机高级语言的使用-1. Preparation: Read the operating system process management chapters, the process of synchronization and mutual exclusion, semaphores, and a deep understanding of local system
PV_handle
- 实现一个进程,该进程拥有一个生产者线程和一个消费者线程,它们使用32个不同的缓冲区。使用如下信号量: (1)一个互斥信号量,用以阻止生产者线程和消费者线程同时操作缓冲区列表; (2)一个信号量,当生产者线程生产出一个物品时可以用它向消费者线程发出信号; -Implement a process that has a producer thread and a consumer thread, they use 32 different buffers. Semaphore using
signal_mutex
- 演示了linux中用信号量实现互斥锁的机制,用gcc编译后运行-Demonstrated using linux semaphore mutex lock mechanism, with the gcc compiled and run
signal_synchronous
- 演示了linux中信号量的同步机制,用gcc编译后运行-Shows the amount of linux synchronization signal, compiled and run using gcc
pthread_sync_and_mutual
- linux多线程极大方便了程序编写,但同时必须考虑线程同步、互斥问题。 示例代码给出了利用信号量实现P、V操作,从而保证多线程同步、互斥。-linux multithread programming is very convenient, but we must pay attention to synchronization and mutual exclusion. The sample code shows us how to ensure multi-thread synch
semaphore
- 信号量(Semaphore)也被称为信号灯,常常作为在多线程环境下的同步与互斥机制。它负责协调各个线程,以保证它们能够正确、合理的使用公共资源。信号量分为单值和多值两种。单值信号量只能被一个线程获得,而多值信号量可以被若干个线程获得。 本实验是一个信号量实验,父进程作为生产者释放信号量,子进程作为消费者申请信号量。 实验环境 Redhat9.0-Semaphore (Semaphore), also known as signal lights, often in multi-th
10
- 里面接受了,基于linux的管道,信号量等事例,是买光盘自带的,希望对大家有帮助-Which accepted, linux-based pipeline, semaphores and other examples, is to buy the disc comes, we want to help
char-driver-by-sem
- 一个字符驱动源码,基于信号量同步。亲自试验,可以运行。-A character-driven source code, semaphore-based synchronization. Test yourself, you can run.
sem
- linux信号量使用方法,示例中包括源码和makefie,以及经过编译的文件,可以直接运行-linux semaphore usage, examples including source code and makefie, and compiled files that can be run directly
mutex
- mutex信号量使用方法,示例中包括源码和makefie,以及经过编译的文件,可以直接运行-use mutex semaphores, including source code and sample makefie, and compiled files that can be run directly
Linux-driver-development7
- 作者:华清远见嵌入式学院。《Linux设备驱动开发详解》(08&09年度畅销榜TOP50)第7章、Linux设备驱动中的并发控制。Linux设备驱动中必须解决的一个问题是多个进程对共享资源的并发访问,并发访问会导致竞态。Linux提供了多种解决竞态问题的方式,这些方式适合不同的应用场景。7.1节描述了并发和竞态的概念及发生场合。7.2~7.5节分别讲解了中断屏蔽、原子操作、自旋锁和信号量等并发控制机制。7.6节讲解增加并发控制后的globalmem的设备驱动。-Author: HuaQing v
thread-test.tar
- 一个关于linux线程的互斥量,条件变量,信号量的例子,看完了明白互斥量等线程同步的基本使用方法-A thread on linux mutex example, read the understand the basics of using a mutex