Re: thread priority ?

Sam Steingold <[email protected]> Mon, 18 Dec 2017 10:04:20 -0500
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
> * Don Cohen <[email protected]> [2017-12-15 21:51:55 +0000]:
>
> I suspect a good place to use priorities would be in granting locks.

It seems like a sensible policy to let a high-priority threads grab
locks ahead of low-priority ones.
Is it actually done by OSes?

> For instance, knowing that a high priority process is waiting for a
> lock held by a low priority process could increase the priority of the
> second, until it releases the lock.

I am not sure this is really a good policy.
It seems to me that a low priority process being able to lock out a high
priority process is a sign of poor application design (there should be
a way for the high priority process to tell the low priority one to
release the lock immediately).
I don't think one can fix it with some OS-level policy.

Thanks.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net http://iris.org.il
https://jihadwatch.org http://honestreporting.com http://americancensorship.org
Any connection between your reality and mine is purely coincidental.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list