View previous topic :: View next topic
|
Author |
Message |
k_v_mahesh
New User
Joined: 25 May 2010 Posts: 15 Location: chennai
|
|
|
|
Is it possible to multithread a set of process (independent subroutines)
inside a COBOL program like what we do in PL/1 or C. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
The answer could be Yes or No, or Maybe.
Please describe exactly what you would like to achieve, and why multi-threading is your best tool, and how you could do it in PL/I and C, please. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
k_v_mahesh
New User
Joined: 25 May 2010 Posts: 15 Location: chennai
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Are you running under AIX? |
|
Back to top |
|
|
k_v_mahesh
New User
Joined: 25 May 2010 Posts: 15 Location: chennai
|
|
|
|
No it is not in AIX...
I would like to know if it is feasible in zO/S. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Follow Peter's link to know.
I don't understand if the things are "independent" why you feel you need to have them in one program? I don't think your explanation of the requirement has been sufficiently full to provide a great deal of help to you. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
I suspect there is no business reason to do this. . .
Quote: |
I read this article in IBM (multithreading C main program and two COBOL programs) |
If you are determined to implement this, why not use the method shown?
I have only seen several 10s of thousands of batch implementations that have multiple "things to do" that are independent and they are always done serially if they are in the same job.
Also, both could be run concurrently with any follow-on process(es) scheduled after both have successfully completed.
Keep in mind that someone (probably not you) will have to maintain this some day and will have no background.
Other than wanting to implement somethng clever, why is this being considered? |
|
Back to top |
|
|
|