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

Reply via email to