如何使用多线程? [英] how can i use multi threading?

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

问题描述


我在Windows应用程序中使用了两个线程,一个用于发送短信,另一个用于接收短信,都使用相同的端口,当发送线程想要发送短信时,它必须暂停接收线程,一旦发送了所有短信,它就必须恢复接收线程.....我该怎么做

Hi
I am using two threads in my windows application, one for sending sms and other for receiving sms both uses the same port, when sending thread wants to send an sms it has to suspend the receiving thread and once it sent all sms it has to resume the receiving thread.....How can i do this

推荐答案

文档呢?
What about documentation?
  • "Multithreading in Visual Basic .NET".
  • Thread Synchronization".


我相信这篇文章会对您有所帮助:
基于工作队列的多线程 [
I believe this article would help you out:
Work Queue based multi-threading[^]


这篇关于如何使用多线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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