10-11-2016, 07:51 AM
yes is no doubt as i read, nginx uses an event driven model. The per event state machines are non-blocking. The event state machines for a large number multiple http(s) connections are multiplexed under a small number of threads. Typically, the number of threads are equal to the number of cores. Since each thread is in charge of multiple connections or sessions, they must do non-blocking I/O, kernel calls. This is to give a chance to the other sessions which are being processed under the same thread to make progress.