Click here to Skip to main content
15,922,145 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Can we compile IL to x86 assembly? Pin
Daniel Turini19-Jan-04 6:14
Daniel Turini19-Jan-04 6:14 
GeneralRe: Can we compile IL to x86 assembly? Pin
Judah Gabriel Himango19-Jan-04 7:35
sponsorJudah Gabriel Himango19-Jan-04 7:35 
GeneralRe: Can we compile IL to x86 assembly? Pin
Daniel Turini19-Jan-04 7:41
Daniel Turini19-Jan-04 7:41 
GeneralApp domain vs. process Pin
Hesham Amin17-Jan-04 4:28
Hesham Amin17-Jan-04 4:28 
GeneralRe: App domain vs. process Pin
Mike Dimmick19-Jan-04 6:10
Mike Dimmick19-Jan-04 6:10 
GeneralRe: App domain vs. process Pin
Hesham Amin19-Jan-04 10:25
Hesham Amin19-Jan-04 10:25 
Generalcapturing user's action Pin
dnprock16-Jan-04 13:27
dnprock16-Jan-04 13:27 
Question(MSMQ) Whats the Best Way to Poll a Queue? Pin
Vlad Gabovich15-Jan-04 11:33
Vlad Gabovich15-Jan-04 11:33 
This question is directed towards MSMQ in .NET (System.Messaging.MessageQueue, etc), but is relevant to messaging in general.
Suppose I have a lot of messages coming through some queue (~1000 msgs/sec),
and some function ProcessMessage(Message msg) that I want to invoke to process each message.

There are two ways to read these messages asynchronously (MSMQ/.NET):
1. Begin a thread (or Timer thread) that periodically polls the queue (MessageQueue.Receive()), retrieves a new message, calls ProcessMessage().
2. Call the asynchronous MessageQueue.BeginReceive() to which you pass your callback function (as delegate). Then when a new message comes, the MessageQueue will automatically call your callback function.

The difference in performance is unclear to me. In the second case, it seem you have to do less work, since you get notified automatically when a message arrives instead of having to write a thread that checks this; however, there is more flexibility in the first approach, because you control exactly how the check for new messages is performed, how often, etc. But I am really only interested in performance, and though I am going to write some simple examples to test this, I am not sure that they will be representative of what happens under a real load.

Does anybody have thoughts on this? Thanks!

-Vlad
GeneralInfo on MS Intermediate Language Pin
Aamir Mughal15-Jan-04 2:40
Aamir Mughal15-Jan-04 2:40 
GeneralRe: Info on MS Intermediate Language Pin
Mike Dimmick15-Jan-04 4:05
Mike Dimmick15-Jan-04 4:05 
GeneralSOAP and serialization Pin
ProffK14-Jan-04 23:10
ProffK14-Jan-04 23:10 
GeneralWord-addin Pin
klawipo14-Jan-04 6:29
klawipo14-Jan-04 6:29 
GeneralAdvanced Collision Detection with GDI+ Pin
david@mindplay.com13-Jan-04 9:34
david@mindplay.com13-Jan-04 9:34 
GeneralRe: Advanced Collision Detection with GDI+ Pin
pwinant14-Jan-04 10:29
pwinant14-Jan-04 10:29 
GeneralRe: Advanced Collision Detection with GDI+ Pin
david@mindplay.com15-Jan-04 9:05
david@mindplay.com15-Jan-04 9:05 
GeneralRe: Advanced Collision Detection with GDI+ Pin
pwinant15-Jan-04 13:03
pwinant15-Jan-04 13:03 
GeneralRe: Advanced Collision Detection with GDI+ Pin
david@mindplay.com15-Jan-04 13:37
david@mindplay.com15-Jan-04 13:37 
GeneralRe: Advanced Collision Detection with GDI+ Pin
david@mindplay.com17-Jan-04 14:00
david@mindplay.com17-Jan-04 14:00 
GeneralLaunching an outside app with .NET Pin
bneacetp13-Jan-04 3:18
bneacetp13-Jan-04 3:18 
GeneralRe: Launching an outside app with .NET Pin
Niels Penneman13-Jan-04 5:45
Niels Penneman13-Jan-04 5:45 
GeneralRe: Launching an outside app with .NET Pin
bneacetp13-Jan-04 7:54
bneacetp13-Jan-04 7:54 
Questionhow to get install path Pin
yu-yu12-Jan-04 20:53
yu-yu12-Jan-04 20:53 
AnswerRe: how to get install path Pin
Heath Stewart14-Jan-04 9:41
protectorHeath Stewart14-Jan-04 9:41 
GeneralRe: how to get install path Pin
yu-yu14-Jan-04 15:37
yu-yu14-Jan-04 15:37 
QuestionHow do you access the scrollbar of a panel? Pin
pwinant12-Jan-04 15:49
pwinant12-Jan-04 15:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.