|
Zak, No actually it is quite easy however there is always a catch! "It depends on the definition of multi-threading" Do you simply mean running multiple copies of the program? (If yes, then the only concern is row/record locking or contention for the same piece of information) if you mean can this one program process different sets of data at the same time (Yes, no problem) Is there a need to pass information to the program that might have different data associated with the same key (If yes then it gets a bit more involved) In any case the short answer is you can run multiple instances of the same program at the same time with little difficulty. Now it sounds like you might be interested in having multiple parts of the program running concurrently? That would require a bit more work. I have a sample I can send you that receives instructions via a trigger, selects it's data and queues the data then places the data in a data queue. The data queue holds data for multiple instances of the program. The programs have there own subsystem so we can control how many instances/threads of the program that can run. Each instance of the program gets its data from the data queue using a key. I hope this is high level enough. -----Original Message----- From: Metz, Zak [mailto:Zak_Metz@xxxxxx] Sent: Tuesday, June 03, 2003 1:11 PM To: cobol400-l@xxxxxxxxxxxx Subject: Multithreading IANACD*, so I would appreciate high-level replies... My company is interested in converted some existing COBOL programs to support multiple threads. Based on my research in the "iSeries Multithreaded Applications" section of the info center and the "ILE COBOL Programmer's Guide" for v5r2, am I correct in understanding that the extent to which ILE COBOL supports threading is module serialization? The existing program is one big module with lots and lots of paragraphs. Would that have to be broken up into multiple modules to be able to thread the program? Your "COBOL Threading for Dummies"-style replies are very much appreciated! *(I Am Not A COBOL Developer) Zak Metz Group 1 Software iSeries Platform Specialist IBM Certified Specialist - IBM eServer iSeries Technical Solutions Implementer NOTICE: This E-mail may contain confidential information. If you are not the addressee or the intended recipient please do not read this E-mail and please immediately delete this e-mail message and any attachments from your workstation or network mail system. If you are the addressee or the intended recipient and you save or print a copy of this E-mail, please place it in an appropriate file, depending on whether confidential information is contained in the message. _______________________________________________ This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/cobol400-l or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/cobol400-l.
As an Amazon Associate we earn from qualifying purchases.
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.