|
From: Alexandre F. <ale...@gm...> - 2016-11-28 02:01:55
|
On Mon, Nov 28, 2016 at 2:12 AM, Lucio Andrés Illanes Albornoz <l.i...@gm...> wrote: > > Can't you use the same model of using a trigger pipe to do the inter-thread notification, but with each thread having its own trigger pipe? That is, when the trigger pipe is written to, the select/poll/epoll/kqueue wakes up, and can then check the condition variable. As was suggested earlier, it means an extra 2 fds per thread, but that's much less of an issue since you're not limited to 1024 fds. Well, C10k means FD20k then. Still doable ... though I hope the process won't try to execve() anythink (close-on-exec might be a strain) |