I can see that I may want to be doing the indexing the document while it is being scanned and that would be a good use of multi threading. Our current application basically locks the keyboard when the scan is running. I will have to ask the vendor about that.



Chris Bipes
Director of Information Services
CrossCheck, Inc.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter
Sent: Friday, September 04, 2009 2:58 PM
To: Midrange Systems Technical Discussion
Subject: Re: multi-threading

On Fri, Sep 4, 2009 at 4:12 PM, Chris Bipes<chris.bipes@xxxxxxxxxxxxxxx> wrote:
I decided to start a new thread for the question, why?  In all my
business programming I have never needed to write a multithreaded
application.

If the interactive subsystem was designed along the lines of an event
driven framework there would be a real need for threads. Where the
keypress of any of the AID keys was handled by signaling an event in
the RPG program. The event handlers are required to not do much work
so that the main program loop could continue to read from the event
message queue. Long running functions like F7 to scan a document or F8
to get data from a web service would run in a thread and signal an
event when done.


This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].