× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Performance problems using dataqueues to NT.
  • From: "Simon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Thu, 28 Sep 00 10:37:12 +1000
  • Importance: Normal


Hello David,

You wrote:
>So, the two second wait in step 4 has to do with the way the server waits
>for an entry to show up on the queue.

So the server is really polling the queue rather than waiting on the queue?  
Why are they 
doing that since that is not the way data queues are supposed to be used.  The 
whole 
point is that you can wait and get woken immediately an entry arrives.  Is 
because once 
the server job enters a DEQW it isn't woken if activity occurs on a socket (via 
select) 
and they want to catch client activity?  (Why does a DEQW seem so 
uninterruptable?  It 
doesn't even get interrupted for ENDJOB *CNTRLD!)

I've run into a similar problem with some Telnet work I'm doing using the data 
queue 
associated with virtual terminals.  My solution was to start a separate batch 
job whose 
only purpose is to process the queue.  When an entry arrives it sends the queue 
data via 
a local socket to the appropriate server.  Not a trivial coding effort but 
certainly 
better than the way you say it currently works.

It would almost be better to write your own sockets server to handle the data 
queue than 
suffer a 2-second overhead.  Client-server applications are slow enough without 
that sort 
of silliness.  I realise that if the queue is populated faster than the client 
can 
process the data it won't suffer the delay but jeez .... and I think a 2-second 
delay 
occupies an activity level ....

Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175      Mobile: +61 0411 091 400           «»
«» Fax:   +61 3 9419 0175      mailto: shc@flybynight.com.au      «»
«»                                                                «»
«» Windoze should not be open at Warp speed.                      «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.