VB .NET中的生产者使用者样本 [英] Producer consumer sample in VB .NET

查看:146
本文介绍了VB .NET中的生产者使用者样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



这是sampath我需要你帮助创建制作人和消费者样本。实际上我只会解释我的情景。请帮助如何实现



示例:

第一个函数读取1,2,3,4添加到队列

第二个函数进程如果队列包含在第一个函数中添加1时的任何数据第二个函数从队列和进程中选择一个。



请帮助我如何在VB中实现.net



谢谢&此致,

Sampath



我的尝试:



没有尝试任何东西。我是vb .net的新手探索网络,但在vb .net中找不到任何样本

Hi All,

This is sampath i need your help to create producer and consumer sample.Actually i will just explain my scenario.Please help how to acheive

Example:
first functions reads 1,2,3,4 adds to queue
second function processes if queue contains any data when 1 is added in first function second function picks one from the queue and processes.

Kindly help me how can i acheive in VB .net

Thanks & Regards,
Sampath

What I have tried:

Did not tried anything .I am new to vb .net explore the web but did not find any samples in vb .net

推荐答案

有数千种互联网上的样本 - 谷歌搜索包括vb.net [ ^ ]

更通用的Google搜索 [< a href =https://www.google.co.uk/search?safe=active&ei=TitlXNySK4f4wQKWk50I&q=producer+consumer+pattern&oq=producer+consumer+pattern&gs_l=psy-ab.3.0。 0l10.8202.9173..10408 ... 0.0..0.70.452.7 ...... 0 .... 1..gws-wiz ....... 0i67.oAEkarBccgAtarget =_ blanktitle = 新窗口> ^ ]

第二个链接更好。为什么?因为它不仅仅为您提供复制代码(您的导师会将您标记为您),而是包含如何任何语言中应用模式的一般说明



当你写完一些代码时,如果你遇到困难就会回来。但对不起,这不是一个教程论坛
There are thousands of samples on the internet - Google search including vb.net[^]
More generic Google search[^]
The second link is better. Why? Because instead of just providing you with code to copy (which your tutor will mark you down on), it includes general instructions on how to apply the pattern in any language

When you have written some code come back if you get stuck. But I'm sorry, this is not a tutorial forum


这篇关于VB .NET中的生产者使用者样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆