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 » IBM MQ API Support » Under The Covers of How WaitInterval Works?

Post new topic  Reply to topic
 Under The Covers of How WaitInterval Works? « View previous topic :: View next topic » 
Author Message
queuetip
PostPosted: Thu May 05, 2005 12:22 pm    Post subject: Under The Covers of How WaitInterval Works? Reply with quote

Acolyte

Joined: 03 Feb 2005
Posts: 67

If a program issues a MQGET with a WaitInterval of 5000 (i.e. 5 seconds) to an empty queue, we know that the program will wait UP TO 5 seconds before returning a not found condition (i.e. reason code = 2033).

I have two questions based upon a message hitting the queue AFTER the MQGET was issued while it is WITHIN the WaitInterval time...

1) What is the SEQUENCE OF EVENTS between MQSeries, the operating system and the application program thread FROM when the message hits the queue TO the point the application retrieves it (possibly different answer per platform - NT, SUN, z/OS)?

2) HOW LONG is the time starting FROM when the message hits the queue TO the time the application retrieves it? (possibly different answer per platform - NT, SUN, z/OS)? Looking for something like a heartbeat.

Thanks - need to know the details because we are fine tuning our application!
Back to top
View user's profile Send private message
malammik
PostPosted: Thu May 05, 2005 1:16 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Read this
http://ou800doc.caldera.com/en/SDK_sysprog/PTL_ThdsSigs.html
and this
http://www.cs.nmsu.edu/~jcook/Tools/pthreads/pthread_cond.html

Did u ever use hotel wake up service?
This works exactly the same only you can't wake up until someone wakes you up. Thread registers with os assigned id with some other process saying wake me up when some condition is true. This operation is so fast that it is almost irrelevant to talk about how long it actually takes.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
queuetip
PostPosted: Thu May 05, 2005 2:09 pm    Post subject: Reply with quote

Acolyte

Joined: 03 Feb 2005
Posts: 67

I knew it had to be something like this. Just didn't know if there was something like a parameter that could be configured.

So if I understand it, the bottom line is when you enter the WaitInterval state you transfer the response time responsibilty to the operating system's environment.

Thank you!
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Fri May 06, 2005 2:23 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Moving to API Support forum
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jefflowrey
PostPosted: Fri May 06, 2005 3:20 am    Post subject: Re: Under The Covers of How WaitInterval Works? Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

queuetip wrote:
Thanks - need to know the details because we are fine tuning our application!


You're likely overtuning.

Concentrate on your app logic.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
queuetip
PostPosted: Fri May 06, 2005 8:51 am    Post subject: Reply with quote

Acolyte

Joined: 03 Feb 2005
Posts: 67

Please don't jump to the conclusion that we are focused on just this one item. We are look at MANY other things and not just the application! That would be extremely short-sighted.

The intent was to gain understanding to see if there was a tuning opportunity here. Thank you.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri May 06, 2005 10:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

queuetip wrote:
Please don't jump to the conclusion that we are focused on just this one item. We are look at MANY other things and not just the application! That would be extremely short-sighted.

The intent was to gain understanding to see if there was a tuning opportunity here. Thank you.


I wasn't jumping to the conclusion that you were only looking at this.

I was jumping to the conclusion that you were looking every BUT your app.

In my opinion, it is never worthwhile to look at infrastructure UNTIL it has been shown that the app has been optimized first. But most people disagree with this...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Under The Covers of How WaitInterval Works?
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.