Gustavo Rios wrote: > Dear fellows, > > i am in need to write event driven processing applications. I must > avoid sequential processing. I will be mixing RPC queries and dns > ones. > > I saw, at the first sigh, writing non batch program is very hard to > accomplish. So i wonder how openbsd manages when there are n process, > for instance, waiting on a file descriptor for > readability/writeabilitiy simultaneously? How does it "notify" the > readable/writeable status to each of the process doing poll/select?
You could start by reading the poll(2) and select(2) manpages. This is pretty basic stuff. Alternately you could use libevent, see event(3). -d

