搜索资源列表
shengchanzheyuxiaofeizhe
- 设计目的:通过研究Linux 的进程机制和信号量,实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,有界缓冲区可用数组实现,缓冲区中的内容自定。 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者进程标识符.(2)生产者和消费者至少各有两个以上.(3)多个生产者或多个消费者之间须有对缓冲区进行共享操作的函数代码(注意互斥与同步).-Design Objective: To study the mech
Linux-semaphore
- 信号量的使用主要是用来保护共享资源,使得资源在一个时刻只有一个进程(线程)所拥有。-Semaphore is mainly used to protect the use of shared resources, making the resource at a time only one process (thread) owned.
Linux-program-design
- Linux 系统程序设计基础,进程,信号量,管道通信。-Linux system program design basis, process, the magnitude of the signal, communication pipeline.
IPC_Funs
- c++写的在linux环境下多线程间使用互斥锁、posix信号量和system v信号量,实现的通信程序。自己编写的,自己测试过。-written in c++ linux environment using multi-thread mutex locks, posix semaphores and system v semaphore, to achieve the communication program. I have written, and tested.
3.c
- 编写程序实现生产者-消费者问题。使用Linux的pthread线程库,创建2个生产者线程和2 个消费者线程。生产者线程计算当前的时间,把时间、第几次计算时间的序号(循环次 数)和线程ID作为一个消息,把消息放入缓冲区,消费者线程从缓冲区读出一个消息 并显示消息。缓冲区大小为5个,每个生产者线程生产10个消息,每个消费者线程消费 10个消息,即生产和消费分别为20次。 要求:2个生产者线程执行的代码是相同的(即执行同一函数),2个消费者线程也 一样。 提示: 生产者
pthread-manual
- 主要介绍了在linux环境下pthread的功能及使用情况,以及各个信号量的使用案例。-Introduces the pthread in linux environment function and usage, as well as the use of various semaphore case.
jctx
- 实验三 进程间通信 UNIX/LINUX系统的进程间通信机构(IPC)允许在任意进程间大批量地交换数据。本实验的目的是了解和熟悉LINUX支持的信号量机制、管道机制、消息通信机制及共享存储区机制。 -In Experiment 3, inter-process communication UNIX/LINUX system inter-process communication agencies (IPC) to allow large quantities in any exchang
p02
- 使用信号量的司机-售票员多线程通信模型实现。-Drivers use semaphore- conductor to achieve multi-threaded communication model.
LINUX
- 信号量实现进程之间的通信,一个重要的实例,主要为了说明时间信号量的作用-Semaphores to communicate between processes, an important example, to illustrate the major role in the amount of time signals
OS_121101
- 操作系统,linux进程线程操作,信号量的运用,液面操作系统-Operating system, linux operating process threads, semaphores use of liquid operating system
signal
- 基于Linux下的进程通信中的信号量通信,以及相关的实现代码-Based on the process of communication under Linux the magnitude of the signal communication, as well as the realization of the relevant code
labP5
- 系统实现信号量通信,很好用,进程间通信,有公共的内存分配空间-System semaphore communicatio
LinuxPC
- 介绍关于linux的相关的系统函数调用,其中重点讲解了管道,内存,信号量等。-about linux system function
final
- linux 多线程编程案例 使用信号量实现互斥-linux multi-threaded programming case
linux-signal
- 关于linux信号量的学习的资料,主要讲解信号量的使用-linux signal study
linux
- linux系统编程的相关示例,包括文件,进程,管道,shell,信号量等相关实例程序,对linux系统编程入门有一定帮助-Linux System Programming example, the instance of the program, including file, process, piping, shell, and semaphores Introduction to linux system programming
signal
- linux下应用程序的编写,信号量的编程,初学者参考-under linux applications written semaphore programming beginners reference
win32
- 在Win32环境实现的信号量控制,这是学习操作系统信号量的基础!-Win32 environments in the amount of signal control, which is to learn the basis of the operating system semaphore!
PrdCos
- 基于共享内存,使用轻量级进程信号量机制实现消费者生产者问题-Consumers to producers based on shared memory, the use of lightweight processes semaphore mechanism
sem
- 学习Linux 编程中的进程线程时写的一个关于信号量的小代码-Small code learning the Linux programming process thread write a semaphore