多线程生产者和使用者方法VB [英] multi thread Producer and consumer method VB

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

问题描述

大家好,

我想在后台运行两个线程,请给我一些示例,说明如何在VB或VB.Net中运行事件库生产者和使用者线程.

谢谢
Vishnu

Hi All,

I want to run the two threads one background, please send me some example on how to run event base producer and consumer thread in VB or VB.Net

Thanks
Vishnu

推荐答案

我会说,忘记VB了.对于VB.NET,这非常简单.抱歉,我没有做VB.NET代码,也不会在我的任何计算机上安装VB.NET,但是我可以向您展示非常相似的代码,您可以轻松地了解它.请理解,如果您需要.NET中的有效帮助,则需要至少了解一些C#.这很容易,因为.NET使大多数CLR语言非常相似.请在这里查看我的提示/技巧文章:用于线程通信的简单阻止队列和线程间调用 [ ^ ].

—SA
I would say, forget VB. As to VB.NET, it''s pretty easy. Sorry, I don''t do VB.NET code and not going it install VB.NET on any of my computers, but I can show you very similar code where you can easily get the idea. Please understand, that if you need effective help in .NET, you need to understand at least some C#. It''s easy because .NET makes most CLR languages very similar. Please look at my Tips/Tricks article here: Simple Blocking Queue for Thread Communication and Inter-thread Invocation[^].

—SA


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

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