windows_pc

所属分类操作系统开发
开发工具:WINDOWS
文件大小:3702KB
下载次数:0
上传日期:2017-08-21 16:13:40
上 传 者ewq1
说明:  生产者 消费者问题 生产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。在同一个进程地址空间内执行的两个线程生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出来。
(prodecer consumer The producer consumer problem is a classic process synchronization problem that was first proposed by Dijkstra to demonstrate the proposed semaphore mechanism. Two threads executed in the same process address space, the producer thread produces the article, and then puts the item in an empty buffer for consumer thread consumption. The consumer thread gets the items from the buffer and then releases the buffer. When the producer thread produces the goods, if there is no empty buffer available, then the producer thread must wait for the consumer thread to release an empty buffer. When consumer threads consume objects, if there is no full buffer, then the consumer thread will be blocked until new items are produced.)

文件列表
windows_pc
windows_pc\main.cpp
windows_pc\windows
windows_pc\windows\Debug
windows_pc\windows\Debug\windows.exe
windows_pc\windows\Debug\windows.ilk
windows_pc\windows\Debug\windows.pdb
windows_pc\windows\windows
windows_pc\windows\windows\Debug
windows_pc\windows\windows\Debug\BuildLog.htm
windows_pc\windows\windows\Debug\main.obj
windows_pc\windows\windows\Debug\mt.dep
windows_pc\windows\windows\Debug\vc90.idb
windows_pc\windows\windows\Debug\vc90.pdb
windows_pc\windows\windows\Debug\windows.exe.embed.manifest
windows_pc\windows\windows\Debug\windows.exe.embed.manifest.res
windows_pc\windows\windows\Debug\windows.exe.intermediate.manifest
windows_pc\windows\windows\main.cpp
windows_pc\windows\windows\windows.vcproj
windows_pc\windows\windows\windows.vcproj.cai-PC.cai.user
windows_pc\windows\windows.jpg
windows_pc\windows\windows.ncb
windows_pc\windows\windows.sln
windows_pc\windows\windows.suo
windows_pc\windows\生产者消费者问题(Windows).doc

近期下载者

相关文件

评论我要评论

收藏者