What alternatives did IBM have given that spawned processes can reside in other address spaces?
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Tony Harminc [[email protected]] Sent: Wednesday, June 22, 2022 11:40 PM To: [email protected] Subject: Re: Some UNIX file usage questions On Wed, 22 Jun 2022 at 01:31, Andrew Rowley <[email protected]> wrote: > > On 22/06/2022 9:03 am, Charles Mills wrote: > > Can one write a Started Task in Java? What would the JCL look like > > (neglecting application-specific items)? > > This is a basic Java program that runs and responds to MODIFY and STOP > commands: [...] > while (!stopped) > { > Thread.sleep(1000); > } > } Does this actually always sleep for the entire time, or is it somehow interrupted by the MODIFY command? In an ordinary MVS environment, one would write a command handling subtask, and when the main (or a worker) task waits for work, it waits on both the work ECB and the command-has-been-issued one. Or a we-are-shutting-down one. In this example it appears that the worker task/thread both waits for commands and does the work (the report). > One quirk is that the modify commands need to specify APPL=, i.e. > MODIFY JOBNAME,APPL=REPORT Ah - I've been waiting for someone to mention this "quirk". This is a design decision going way back, such that z/OS UNIX has stolen the command interface from the user space, and demoted the rightful owner (the application program) to having to deal with the APPL= nonsense. Why, I have no idea. I can see no reason the UNIX environment in an individual address space should need the command interface. Other z/OS UNIX commands are addressed to the kernel, or to other specific address spaces (file systems and such). Maybe in his last few working days Bill Schoen could comment... Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
