-
TM1681
STM32 TM1681 驱动电路,调试通过(TM1681 STM32 driver circuit, debugging through)
- 2020-07-30 20:38:40下载
- 积分:1
-
读者写者问题
说明: 1、定义一个数据缓存buffer及用于实现同步互斥的信号量。
2、定义一个读者函数:
?当有写者在占用buffer时,读者应该等待,直到写者不再使用该buffer。
?当有其他读者在占用buffer时,读者可对buffer进行读取操作。
?当buffer中有数据时,则从其中读取一个数据,并显示然后退出。
?当buffer中没有数据时,应等待,直到buffer中有数据可读。
3、定义一个写者函数
?当有读者在占用buffer时,写者应该等待,直到所有的读者都退出为止。
?当有其他写者占用buffer时,该写者应该等待,直到占用buffer的写者退出为止。
?当buffer有空闲时,写者应该在buffer中写入一个数据并退出。
?当buffer满时,写者应该等待,直到buffer有空闲为止。
4、定义主函数,在其中可以任意创建读者与写者。
可根据用户输入创建读者或写者进程(线程)。(1. Define a data buffer and semaphores for synchronization and mutual exclusion.
2. Define a reader function:
When a writer is occupying the buffer, the reader should wait until the writer no longer uses the buffer.
When other readers occupy the buffer, they can read the buffer.
When there is data in the buffer, read a data from it, display and exit.
When there is no data in the buffer, wait until the data in the buffer is readable.
3. Define a writer function
When a reader is occupying the buffer, the writer should wait until all readers quit.
When other writers occupy the buffer, the writer should wait until the writer who occupies the buffer exits.)
- 2019-12-27 18:49:46下载
- 积分:1
-
m16l
the very good man is you for anyone who descriminate this
- 2019-05-31 11:50:17下载
- 积分:1
-
pf-segmentation-master
Matlab interface for the image segmentation algorithm of
Efficient Graph-Based Image Segmentation
Pedro F. Felzenszwalb and Daniel P. Huttenlocher
International Journal of Computer Vision, 59(2) September 2004.
- 2013-09-28 06:40:40下载
- 积分:1
-
sensorloss
DSP TMS320F28335 无位置传感器直流无刷电机控制(DSP TMS320F28335 BLDC)
- 2018-05-08 11:36:15下载
- 积分:1
-
HIST
vc6.0 opencv 颜色直方图对比 显示 匹配(vc6.0 opencv hist load show match)
- 2012-04-20 11:45:23下载
- 积分:1
-
Visual C++网络高级编程
说明: 本书对Visual C++各种编程技术和TCP/IP进行系统介绍的基础上,重点讲解网络编程的高级应用、使用技巧和难点。(On the basis of a systematic introduction to various programming techniques of Visual C + + and TCP / IP, this book focuses on the advanced applications, skills and difficulties of network programming.)
- 2021-03-19 22:31:59下载
- 积分:1
-
GPKolmogorov
This file contains a summary of what you will find in each of the files that
make up your GPKolmogorov application.
- 2008-03-27 22:07:01下载
- 积分:1
-
STM08
stm08L152资料文件,可以应用国网芯片,STM08GC101B。(stm08L152 data files, application of the national network of chips, STM08GC101B.)
- 2012-06-07 10:28:51下载
- 积分:1
-
哈弗曼编码采用生成树算法实现文件的压缩与解压缩
哈弗曼编码采用生成树算法实现文件的压缩与解压缩
- 2022-03-30 23:27:00下载
- 积分:1