nginx server, after hearing an event in the socket, put the file descriptor in the queue and parse it.
how to implement async in this process?
where does the nginx server reflect async?
there is a question I can"t figure out all the time. Are the production and consumption models asynchronous and Synchronize?
my understanding is: Synchronize, there is no production and consumption model, threads are responsible for handling the whole process.
Asynchronous, the file descriptor of the event is stored in the message queue. The producer: listens to the ePoll thread, the consumer: parses the http, notifies the confd with the condition variable
, and the consuming thread locks the Epoll after being notified. They say this process is a Synchronize process, how do I think it is an asynchronous process?
assumes that it is asynchronous, so how is it implemented?