生产者消费者

Directory: Process-Thread
Plat: C/C++
Size: 12574KB
Downloads: 0
Upload time: 2019-05-03 16:43:43
Uploader: 弟弟dddddd
Description:   Because products produced by different producers can be sold in different stores and different consumers can buy in different stores, there is a synchronous relationship between producers and consumers, and there is a mutually exclusive relationship between producers and consumers. They must mutually exclusive access to the buffer. The "producer" process continuously writes data to the buffer, while the "consumer" process reads data from the buffer; there are n shared buffers; only one process can operate on the shared buffer at any time, setting three semaphores: full, empty and mutex. Among them: full (g_hFull Items) denotes the number of buffer blocks with data, and the initial value is 0; empty (g_hEmpty Items) denotes that the initial value of empty buffer blocks is n; mutex (g_hMutex) is used to access the buffer, and the initial value is 1.

File list:
生产者消费者, 0 , 2018-12-16
生产者消费者\Debug, 0 , 2018-12-16
生产者消费者\Debug\生产者消费者.exe, 71680 , 2018-12-16
生产者消费者\Debug\生产者消费者.ilk, 390188 , 2018-12-16
生产者消费者\Debug\生产者消费者.pdb, 822272 , 2018-12-16
生产者消费者\ipch, 0 , 2018-12-16
生产者消费者\ipch\生产者消费者-3dc3d3bf, 0 , 2018-12-16
生产者消费者\ipch\生产者消费者-3dc3d3bf\生产者消费者-6efed5fd.ipch, 2949120 , 2018-12-16
生产者消费者\生产者消费者, 0 , 2018-12-16
生产者消费者\生产者消费者.sdf, 35127296 , 2018-12-16
生产者消费者\生产者消费者.sln, 921 , 2018-12-16
生产者消费者\生产者消费者.v11.suo, 17408 , 2018-12-16
生产者消费者\生产者消费者\Debug, 0 , 2018-12-16
生产者消费者\生产者消费者\Debug\cl.command.1.tlog, 1246 , 2018-12-16
生产者消费者\生产者消费者\Debug\CL.read.1.tlog, 22718 , 2018-12-16
生产者消费者\生产者消费者\Debug\CL.write.1.tlog, 538 , 2018-12-16
生产者消费者\生产者消费者\Debug\link-cvtres.read.1.tlog, 2 , 2018-12-16
生产者消费者\生产者消费者\Debug\link-cvtres.write.1.tlog, 2 , 2018-12-16
生产者消费者\生产者消费者\Debug\link-rc.read.1.tlog, 2 , 2018-12-16
生产者消费者\生产者消费者\Debug\link-rc.write.1.tlog, 2 , 2018-12-16
生产者消费者\生产者消费者\Debug\link.command.1.tlog, 1092 , 2018-12-16
生产者消费者\生产者消费者\Debug\link.read.1.tlog, 2488 , 2018-12-16
生产者消费者\生产者消费者\Debug\link.write.1.tlog, 360 , 2018-12-16
生产者消费者\生产者消费者\Debug\stdafx.obj, 11316 , 2018-12-16
生产者消费者\生产者消费者\Debug\vc110.idb, 691200 , 2018-12-16
生产者消费者\生产者消费者\Debug\vc110.pdb, 471040 , 2018-12-16
生产者消费者\生产者消费者\Debug\生产者消费者.lastbuildstate, 68 , 2018-12-16
生产者消费者\生产者消费者\Debug\生产者消费者.log, 1874 , 2018-12-16
生产者消费者\生产者消费者\Debug\生产者消费者.obj, 191077 , 2018-12-16
生产者消费者\生产者消费者\Debug\生产者消费者.pch, 1245184 , 2018-12-16
生产者消费者\生产者消费者\ReadMe.txt, 1587 , 2018-12-16
生产者消费者\生产者消费者\stdafx.cpp, 217 , 2018-12-16
生产者消费者\生产者消费者\stdafx.h, 233 , 2018-12-16
生产者消费者\生产者消费者\targetver.h, 236 , 2018-12-16
生产者消费者\生产者消费者\生产者消费者.cpp, 4139 , 2018-12-16
生产者消费者\生产者消费者\生产者消费者.vcxproj, 4544 , 2018-12-16
生产者消费者\生产者消费者\生产者消费者.vcxproj.filters, 1322 , 2018-12-16

Download users:

Relate files:

Comment: Add Comment

Favorite users: