ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Threads and/or Processes....

Post new topic  Reply to topic
 Threads and/or Processes.... « View previous topic :: View next topic » 
Author Message
jed
PostPosted: Mon Aug 23, 2004 8:26 am    Post subject: Threads and/or Processes.... Reply with quote

Centurion

Joined: 08 Jan 2004
Posts: 118
Location: MI, USA

What is the difference between these two?
_________________
Jed
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Mon Aug 23, 2004 8:33 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Processes contain threads.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jed
PostPosted: Mon Aug 23, 2004 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
bower5932
PostPosted: Mon Aug 23, 2004 9:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Threads and/or Processes....
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.