- Category:
- OS Develop
- Tags:
-
- File Size:
- 1kb
- Update:
- 2017-12-01
- Downloads:
- 0 Times
- Uploaded by:
- 王航及
Description: According to the mutual restriction between the philosophers' process, the reasonable signal quantity and the initial value of the signal quantity are set up.
Create 5 threads to simulate the 5 philosopher processes, respectively.
The synchronization relationship between threads is realized between the philosophers' threads through the P and V operations of the semaphore.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
shiyan3.c | 4041 | 2017-11-28
|
thinking.c | 1508 | 2017-11-22 |