Messages in this thread | | | Date | Tue, 20 May 2003 09:54:27 -0700 (PDT) | From | Davide Libenzi <> | Subject | Re: [patch] futex API cleanups, futex-api-cleanup-2.5.69-A2 |
| |
On Tue, 20 May 2003, Jamie Lokier wrote:
> Yes, they do and it should work (I haven't tried, though). > > There is a practical problem when waiting on a futex in multiple > threads using epoll: you need a separate fd per waiter, rather than an > fd per waited-on futex. This is because some uses of futexes depend > on waiters being woken in the exact order that they were queued.
Not really Jamie. See a Futex event is not much different from a network one. When the event shows up, one thread will pick it up (epoll_wait) and will handle it. A futex event will very likely be a green light for some sort of resource usage that whatever thread can pick up and handle.
- Davide
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |