操作系统_生产着消费者问题实现

Directory: Process-Thread
Plat: C/C++
Size: 1281KB
Downloads: 2
Upload time: 2019-03-04 13:58:27
Uploader: GJLDR
Description:   Typical producer and consumer problems can be achieved by writing multi-process programs. A buffer size of 3, initially empty 2 producers - Wait for a random period of time to add data to the buffer. - If the buffer is full, wait for the consumer to remove the data before adding it - Repeat 6 times 3 consumers - Wait for a random period of time to read data from the buffer - If the buffer is empty, wait for the producer to add data before reading it - Repeat 4 times Display the time of each addition and reading of data and the status of the buffer

File list:
ex3 - 副本, 0 , 2019-03-04
ex3 - 副本\consumer.cpp, 2040 , 2018-03-21
ex3 - 副本\consumer.exe, 1856339 , 2018-03-21
ex3 - 副本\main.cpp, 2756 , 2018-03-21
ex3 - 副本\main.exe, 1855834 , 2018-03-21
ex3 - 副本\pc.c, 3735 , 2018-03-21
ex3 - 副本\producer.cpp, 1967 , 2018-03-21
ex3 - 副本\producer.exe, 1856512 , 2018-03-21

Download users:

Relate files:

Comment: Add Comment

Favorite users: