ObUnclean Does Unix System Services implement its own spin locks or does it use 
MVS  services? Does any *ix have spin locks outside of the kernel?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
David Crayford <dcrayf...@gmail.com>
Sent: Friday, October 18, 2019 1:42 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Best way for a task to give up the CPU and let other tasks run?

Typically, OS services like these and it's Unix equivalent sched_yield()
are used in spinlocks.

On 2019-10-18 1:20 AM, Mike Hochee wrote:
> Yes exactly, that is part of what WLM is designed to do. In the real world 
> most shops use WLM service classes and velocity goals to control things like 
> CPU dispatching frequency. I'm sure there exist workloads which tend to defy 
> the controls available in WLM, but I suspect they are quite rare. In all but 
> those rare instances, I'd be inclined to steer clear coding something in a 
> program for the purpose of getting it re-dispatched for some resource.
>
> My nickels' worth.
> Mike
>
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of Seymour J Metz
> Sent: Thursday, October 17, 2019 12:57 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Best way for a task to give up the CPU and let other tasks run?
>
> Caution! This message was sent from outside your organization.
>
> 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
>
> ----------------------------------------------------------------------
> 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

----------------------------------------------------------------------
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