[Info-vax] MQ series client support AST?
rockdale
rockdale.green at gmail.com
Fri Dec 11 14:06:03 EST 2009
> And have yo considered adding that 1 second timeout to the MQget call
> as a param instead?
My concerns about this are:
Within this MQGET 1 second timeout, my application can not response to
the TCP/IP socket ASTs.
What is the diff between this 1 sec timeout in MQGET and MQGET with
default timeout then sleep 1 sec. My understanding is that with the 1
sec time the gap between 2 mqget is shorter (it is 1 sec), but with my
classic pool, the gap between 2 mqget is 1 sec + the default timeout.
And what is the default timeout value if I did not pass the timeout
parameter to mqget?
> And this is from one process?
> What is the value / need to use a single process?
> Why not have a separate PRODUCER and a CONSUMER process and have them
> talk (mutex?) if need be?
Yes. All this is from one process. That's why I am considering using 2
threads to do read and write seperately. But with 2 separated thread I
still need to consider the race condition (if there are any). Not sure
if it is worth to change to 2 threads. ( a lot of changes).
Last question, does the race condition of MQGET and MQPUT exist? I
understand that it is the same MQ server and same MQ Manager, but they
are different queues.
Again, Thanks
-Rockdale
More information about the Info-vax
mailing list