referenced from chapter 6 in chenshuo's book
all codes are from chenshuo's book and UNPv3 chinese version
NOTE: all codes are no error handlings, just for teching or for my personal recording purpose, thanks:)
-
accept+read/write
-
accept+fork
-
accept+thread
-
prefork
-
pre threaded
-
poll(reactor)
-
reactor + thread-per-task
-
reactor + worker thread
-
reactor + thread pool
-
reactors in threads
-
reactors in processes
-
reactors + thread pool(combination of model 8 and model 9)