Why? If you are waiting for something then you should use system services, e.g., ENQ, WAIT, to delay until it occurs; if you are not waiting for something then why not let the WLM handle what it's designed to handle?
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Thomas David Rivers <riv...@dignus.com> Sent: Thursday, October 17, 2019 8:54 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Best way for a task to give up the CPU and let other tasks run? 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". - Thanks - - Dave R. - -- riv...@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://secure-web.cisco.com/1aWH_FeYH8IlEwirJURk9sI7agw2X83FuMWKAE73bQgFjnWwW8-ePX_1xe1c0wvYZd8fcSnekzTSoxHccH5VLqo1rFCH9l3YX-k05mc9h6Ase64ekfUJQccKN7CoeKCb4mPWA65v0tvTLbXvBj_NDoce9MeFrZe7fZoePl7rSLNfSTkWiZtNoKrgNjJAaR56QKA_GzYAnQG1J3QqwTGR2aaONvJRqOZStLx-dDHLw-ANzfr-JqBhHVtxkPlrsOeTXQ5nr8kcqRcEdVKERvT0cBrDKRHbq59tsrJEPtz1qMjVK741J5WNN9JBdkVQ8CVHDOJsDhzqP_OSlWPU3JX2BtgFEtR-6t6ZDm5b1JEGSDbqulEaUL7WgUU6iBjImRoscWih5c4GWGVq3XTLgBcJli_t27401y41mmE7SVQ5PT5JfB_KovcV3dinUMhketMyr/http%3A%2F%2Fwww.dignus.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN