Linux 多线程服务端编程.pdf
Linux
muduoC++
(giantchen@)
-09-30
C++
TCP
C++ x86-64Linux TCP
one loop
per threadLinux native
muduo
C++
IT 5
C++
muduo2 C++
C++Primer 4
W.Richard Stevens UNIX Sockets API
echo
Sockets
• • UNIX
fork()
• TCP
select(2)/poll(2)/epoll(4) IO
IO
• OOBIO CPU 100%
• libevent
• C struct
C/C++
•
UNIX CPU
IO
UNIX 2 IPC
• •
C++STL
• C++
•
Linux muduo C++
C++ x86-64Linux TCP
5
IO oneloopperthread
Linux native
muduo
m