> For example we have a thread, this thread handle the file
> IO. When I'm wating for some data I can use the select
> function to check it out if there is anything for me. If I
> want to stop the thread during the select, I have no other
> way except for the signal handlers functions.
> It is not really handy, because the example above is too
> simple. In our case is much more difficulter.
Signal handling should do the job fine.
> It is not a nice way, either, but works. Unfortunatelly we
> need about 10,000 events. If I used the pipes for the
> events, I would need about 20,000 file descriptor.
I think you are trying to apply a completely foreign processing model
to Linux. You can do it using pipes but I dont think you need one per event
somehow since you can pass data describing an event.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:25 EST