As a follow-up to this discussion, one reason why my application shows
that locks are held for a long time is that it currently only uses
simple mutex locks. It should also be using condition variables to
handle the case of waiting for work to do (rather than access
locking).
Regardless, even when these cases are avoided, heavy lock usage
becomes a significant problem with many threads running.
Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com