|
Wouldn't that continuous loop on the data queue cause some additional machine overhead? Especially running at run priority of 20. Thanks, Mark Mark D. Walter Senior Programmer/Analyst CCX, Inc. mwalter@xxxxxxxxxx http://www.ccxinc.com Steve Richter <stephenrichter@g mail.com> To Sent by: Midrange Systems Technical midrange-l-bounce Discussion s@xxxxxxxxxxxx <midrange-l@xxxxxxxxxxxx> cc 03/04/2005 09:00 Subject AM Re: Hmmmm.....$1 Billion Please respond to Midrange Systems Technical Discussion <midrange-l@midra nge.com> On Fri, 4 Mar 2005 08:26:38 -0500, Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx> wrote: > > My limited experience is with the very under rated VARPG, > > which is entirely > > event driven. As I worked with VARPG programs on Windows it > > changed my > > regular programming style and logic. While still cycle > > driven, my 5250 programs now tend to focus on the events that > > might takle place rather than on the cycle. > > I will now show my ignorance (like you proclaimed a couple of posts ago <g>) > as well: > > 1) I too wonder why The Cycle is never compared to being event driven in > style. the way I understand it, events are the equivalent to interupts. Your program is made aware of something happening compared to your program checking to see if something happened. You do that by having your program loop on a data queue. External events, like the use clicked the OK button or the user wants to signoff, are signaled to your event processing program thru messages in the data queue. It is a very good programming model. Once the framework is in place it is easy to add a new command key or button to the entry form. an rpg display file program can be written according to the event model by linking a data queue to the display file. look at the Dtaq(xxx) parm of the OVRDSPF command. The way it works is your program "invites" a display device to do something ( I dont recall exactly how it works ), then when the user has pressed the enter key display data management places an entry on the data queue associated with the DSPF, your program receives that "event" from the data queue and executes the read from the display file record to get the entered display data. -Steve -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.