搜索资源列表
Mutex.tar
- Mutex封装类,对信号量的封装,简单易用,带测试代码-Mutex wrapper class, semaphore package, easy to use, with the test code
producer_consumer
- 信号量---线程间通信,“生产者消费者” 问题C代码模拟---- Thread semaphore communication between producers and consumers in the C code simulation
LAN-share-file-software
- 本软件为linux环境下对tcp/IP网络编程的课程设计。实现功能是:获取局域网内所有电脑的共享文件信息,并能从指定电脑多线程下载文件。并可以实现断点续传等功能。通过本课程设计熟悉了linux编程和网络编程,加深了对TCP/IP的了解。 主要工作:写了一个前台和用户交互的程序,写了一个后台和其他电脑通信的守护程序。前台负责发送命令到后台,并接收后台返回的信息。后台用消息队列和前台通信,并向远程客户端提供服务。用到主要编程技术有:多线程、多进程、消息队列、信号量、管道、FIFO、存储映射IO、
test2
- 设计两个任务tServer和tClient,tClient负责通知tServer处理共享内存中的数据,为数据增加头部信息(可以用一句话模拟)。共享内存要用互斥信号量来保护,通知采用消息队列发送,tServer收到通知后需要给tClient反馈确认消息,如果tClient在一定时间内收不到确认消息,将重发通知,最大重传次数为3-Of design two the task tServer and tClient, tClient responsible for notifying the tSer
daima
- Linux进程编程,生产者-消费者程序组,支持多个生产者和消费者,生产者进程数为2, 消费者进程数为3。 生产者与消费者之间使用共享内存进行数据传递,并使用信号量对数据的内容进行保护。-The Linux process programming, producer- consumer program group, supports multiple producers and consumers, the the producer process for 2, consumers pr
UDP-Linux-filetransfor
- LINUX 下C编写UDP 文件传输 运用多线程 队列 信号量-LINUX is written in C under the UDP file transfers using multithreading queue semaphore
sem
- linux下信号量封装,SystemV的,自己的简单封装-the under linux semaphore package, SystemV, own simple packaging
duohe
- 多核编程,包括多线程编程,计算PI,临界区实验,信号量实验,非常完整-Multi-core programming, including multi-threaded programming, calculated PI, critical section experiments, semaphores experiment, very complete
CreateShareMemory
- 此程序功能为开辟共享内存,服务器负责开辟一块共享内存,程序中包含一个读客户端和一个写客户端,并设置了信号量控制访问-This program will function as open shared memory, the server is responsible for opening up a shared memory, the program contains a read and a write client client, and set up a semaphore to con
IntAgent
- socket通信,使用了多进程及信号量的控制。 打印日志采用自己写的日志函数。-socket communication, the use of multiple processes and semaphores to control. Print log using the log to write their own functions.
msg
- linux c 信号量 使用例子 信号量锁,适合初学者-linux c examples of the use semaphore semaphore lock, suitable for beginners
2ipc
- 使用信号量机制,对文件d.txt进行+1操作,每次操作该文件时为一个原子操作(PV操作)。-Using semaphore mechanism for the file d.txt+1 operations, each operation when the file is an atomic operation (PV operation).
chat_sem
- 用linux的套接字 ,实现字符界面的聊天。主要用的信号量,共享内存-With Linux socket, chat interface of characters. Mainly use the semaphore and Shared memory
multi-thread
- linx多线程编程,实现一个多线程生产者消费者模型,用信号量处理线程间的同步和互斥问题。-Linx multithreaded programming, the realization of a multi thread producer consumer model, process synchronization and mutual exclusion problem among threads using signal volume
os
- linix哲学家问题,利用互斥信号量解决死锁。-linix philosophers problem, use mutex resolve the deadlock.
semaphore-and-share-memory
- 两个进程对话,利用共享内存和信号量的知识-two program chart using knowledge of share memory and semaphore
signal
- 简单介绍关于信号量的学习和使用,以及常用的模版-Brief to learn and use on a semaphore, and the common template
12_2_POPENPFIFOPsign
- Popen+信号量 在系统中的传播方式例子之一-Popen+ semaphore in the system, one example of communication
thread
- 线程的互斥,互斥锁、条件变量、信号量、线程创建、线程等待、线程退出-Mutex thread, mutex, condition variables, semaphores, thread creation, thread waits, the thread exits
project
- 利用信号量方法进行哲学家就餐问题的死锁避免,把哲学家分为三种状态,思考,饥饿,进食,仅当一个哲学家左右两边的筷子都可用时,才允许他拿筷子,并且一次拿到两只筷子,否则不拿-Use semaphores method dining philosophers problem of deadlock avoidance, the philosopher into three states, thinking, hunger, eating only when both sides of a philos