On Wed, 14 May 2008, Andriy Gapon wrote:The behavior of scheduling with respect to mutex contention (apart from pthread_mutexattr_setprotocol()) is not specified by POSIX, to the best of my knowledge, and thus is left to the discretion of the implementation. No portable mechanism, and not any mechanism in the operating systems with which I am familiar. That said, as the behavior is not specified by POSIX, there would be nothing preventing an implementation from providing this as an optional behavior through a custom pthread_mutexattr_???_np() interface. As other responders have indicated, the behavior you desire is as unoptimal as possible for the general case. If your application would truly benefit from this sort of queuing behavior, I'd suggest that either you need to implement your own mechanism to accomplish the queueing (probably the easier fix), or that the threading architecture of your application could be designed in a different manner that avoids this problem (probably the more difficult fix). Brent -- Brent Casavant Dance like everybody should be watching. www.angeltread.org KD5EMB, EN34lv _______________________________________________ freebsd-threads@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-threads To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org"
| Con Kolivas | Re: [REPORT] cfs-v4 vs sd-0.44 |
| Tim Tassonis | reiser4 for 2.6.27-rc1 |
| Eric Sandeen | [PATCH 4/4] ext4: call blkdev_issue_flush on fsync |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
git: | |
| Junichi Uekawa | Re: [ANNOUNCE] GIT 1.5.4 |
| Mark Levedahl | rc4 - make quick-install-doc is broken |
| Ingo Molnar | [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commi... |
| Junio C Hamano | Re: Decompression speed: zip vs lzo |
| Richard Stallman | Real men don't attack straw men |
| Girish Venkatachalam | Thinkpad t61 OpenBSD support? |
| David Newman | setting dscp or tos bits |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Radu Rendec | Endianness problem with u32 classifier hash masks |
| Bruno Randolf | [PATCH] add macro for printing mac addresses |
| Ilpo Järvinen | [RFC PATCH 6/8] [NET]: uninline skb_trim, de-bloats |
| Jeff Kirsher | [NET-NEXT PATCH 0/9] e1000: update and cleanups |
