MessageQueue,MessagePump,MessagePost [英] MessageQueue,MessagePump,MessagePost

查看:119
本文介绍了MessageQueue,MessagePump,MessagePost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

执行任何同步调用必须将sendmessage发送到MessageQueue,否则它们可以直接发送MessagePump

如果可能的话,请向我解释MessageQueue,MessagePump,MessagePost到底是在做什么?

do any synchronization call must send sendmessage to MessageQueue Or they can send Directly MessagePump

if possible explain to me MessageQueue,MessagePump,MessagePost Exactly waht doing?

推荐答案

从其中一些文章中阅读对您来说将具有很大的价值.您所提出的问题过于广泛,以至于我们无法在这样的小型论坛中回答.继续进行一些研究,您将得到启发.
It would be of great value to you to read up from some of these articles. The question you are asking is much too broad based for us to answer in a small forum like this. Go forth and do some reasearch and you will receive enlightenment.
Understanding Message Queueing


我一直希望您问有关线程的另一个问题,所以我挖出了两本您应该下载并阅读的 FREE 电子书(aren"我是一个好心的老亨利).

链接1.
C#中的线程 [ ^ ]
链接2.使用C#线程编程的简介 [
I have been expecting you to ask another question about threading so I have dug out two FREE Ebooks that you should download and read (aren''t I a kind old Henry).

Link 1. Threading in C#[^]
Link 2. An Introduction to Programming with C# Threads[^].

I hope that you find these useful.


这是我在Tips/Trick中的文章,其中显示了带有同步的队列代码及其用法.它对消息如何在线程之间提供同步提供了一个好主意:简单线程通信和线程间调用的阻塞队列 [ ^ ].请不要认为这无关紧要;如果您阅读正确,它将准确地说明该主题.

您的任务是不要再次过度锁定线程,因为不需要锁定,我可以解释为什么:-)

—SA
This is my article in Tips/Trick which shows a queue code with synchronization and the usage of it; it gives a good idea on how messages provide synchronization between threads: Simple Blocking Queue for Thread Communication and Inter-thread Invocation[^]. Please don''t think it is irrelevant; it explains the topic precisely, if you read properly.

Your task is not to over-lock threads again, because locking is not needed, I could explain why :-)

—SA


这篇关于MessageQueue,MessagePump,MessagePost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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