"I'm done for the moment if something else would like to run"
That's not for the task to decide: the dispatcher, under control of WLM, 
decides whether you get the CPU or will be removed from it to allow another 
task to run. All based on WLM directions, which you can influence by selecting 
a Service Class with a certain Goal.

Kees.

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Paul Gilmartin
> Sent: 17 October, 2019 16:15
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Best way for a task to give up the CPU and let other tasks
> run?
> 
> On Thu, 17 Oct 2019 08:54:11 -0400, Thomas David Rivers wrote:
> 
> >Does anyone happen to know the best way for a running task
> >to give up running and let another task run?
> >
> >But - this isn't "give up" as in ending the task, just giving up
> >the CPU to allow another task to run and then returning to this
> >task.
> >
> >Sorta like "I'm done for the moment if something else would like to run".
> >
> What does "for the moment" mean?  If your process has nothing
> more to do, it should just quit.  If it needs to wait for an event,
> there are various programming interfaces for such things.
> 
> See also setpriority().
> 
> -- gil
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
********************************************************
For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
employees shall not be liable for the incorrect or incomplete transmission of 
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286
********************************************************


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to