|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Threads and/or Processes.... |
« View previous topic :: View next topic » |
Author |
Message
|
jed |
Posted: Mon Aug 23, 2004 8:26 am Post subject: Threads and/or Processes.... |
|
|
 Centurion
Joined: 08 Jan 2004 Posts: 118 Location: MI, USA
|
What is the difference between these two? _________________ Jed |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 23, 2004 8:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Processes contain threads. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jed |
Posted: Mon Aug 23, 2004 8:52 am Post subject: |
|
|
 Centurion
Joined: 08 Jan 2004 Posts: 118 Location: MI, USA
|
ok... in relation to this question...
i got a simple program that gets (MQGET) messages from a queue...
i create 5 instances of this program to just get messages from the same queue. is it possible to that all five programs get messages from the queue? the 5 instances of the program will do load balancing.....
based on my understanding of mq processes, only one instance of the program will be able to do the get (MQGET) of the messages. am i correct? _________________ Jed |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Aug 23, 2004 9:22 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
All 5 copies of your program should get messages. You could test this out by dumping a bunch of messages to a queue and then running multiple copies of your program against the queue.
However, there is no guarantee that if you have 10,000 messages that each program will get 2,000 of them. The operating system will do swapping and balancing among the various processes and you may not see 100% equal distribution.
What makes you think that only one program will get all of the messages? |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|