-
歌词
学习和参考,源码带有很强的娱乐性,可以欣赏一下C语言的代码可以混乱到什么程度。(Learning and reference, source code with a very entertaining, you can appreciate the C language code can be confusing to what extent.)
- 2018-05-31 23:22:37下载
- 积分:1
-
EPANET教学
说明: 通过matlab调用EPANET可进行水力分析计算(Hydraulic analysis and calculation can be carried out by calling EPANET through MATLAB)
- 2020-06-23 09:40:02下载
- 积分:1
-
Compressed Sensing
说明: Compressed Sensing survey
- 2019-04-29 02:10:24下载
- 积分: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
-
GCP
图着色问题(Graph Coloring Problem, GCP) 又称着色问题,是最著名的NP-完全问题之一。 模拟退火算法实现最优。(Graph Coloring Problem, GCP and the example, the NP-and the example of the NP-and the example of the.igation of the..)
- 2018-12-06 10:14:24下载
- 积分:1
-
基于ESPDuino的智慧物联开发宝典电子版
DOIT ESP8266智慧物联网开发宝典电子书,物联网、电子、通信专业毕业设计宝书(Development of ESP8266 Internet of Things)
- 2020-06-23 16:20:02下载
- 积分:1
-
邻接矩阵的最短距离
邻接矩阵的最短距离-adjacency matrix is the shortest distance
- 2022-03-04 17:39:07下载
- 积分:1
-
分子动力学,用于lammps下聚合物拉伸的input文件和势文件CxN output
说明: 分子动力学,用于lammps下聚合物拉伸的input文件和势文件(molecular dynamics, used in lammps for polymer uniaxial, input file)
- 2020-07-09 15:58:55下载
- 积分:1
-
可以实现应用程序上传到SYBASE数据库,同时客户端自动升级
可以实现应用程序上传到SYBASE数据库,同时客户端自动升级-Applications can be uploaded to the SYBASE database, and automatically upgrade the client
- 2022-03-21 10:03:44下载
- 积分:1
-
网页中农历显示的代码
网页中农历显示的代码-website shows the code
- 2022-08-02 16:19:36下载
- 积分:1