使用生产者线程设计,开发和实施流程 [英] Design, develop and implement a process with a producer thread
本文介绍了使用生产者线程设计,开发和实施流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Linux中需要以下项目/代码.谁能帮我吗?
问:使用生产者线程和使用者线程设计,开发和实现一个过程,这些线程使用有界缓冲区(大小可以加一个合适的值作为前缀)进行通信.使用任何合适的同步构造.
I need the following project/code in Linux. Can anyone help me?
Q. Design, develop and implement a process with a producer thread and a consumer thread which make use of a bounded buffer (size can be prefixed at a suitable value) for communication. Use any suitable synchronization construct.
推荐答案
完美的作业问题……看起来就像是复制粘贴! :doh:
这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.
试试看,告诉他们是否遇到问题.
成员将很乐意为您提供帮助.
Perfect homework question... looks like simply Copy-Pasted! :doh:
Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.
Try them and tell if you face issues.
Members will be more than happy to help like this.
这篇关于使用生产者线程设计,开发和实施流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文