ended3월 24일· 1 sources
# Building a Non-Blocking Multithreaded TCP Server in C++
C++로 논블로킹 멀티스레드 TCP 서버 구축하기
Why it matters
The author built a simple non-blocking multithreaded TCP server in C++ to understand how servers work at a lower level, covering core concepts like TCP sockets, non-blocking I/O, and multithreading. Key challenges included thread management, race conditions, and mixing non-blocking I/O with threads, leading to appreciation for thread pools, event loops, and hybrid architectures. Future plans include replacing thread-per-connection with a thread pool, introducing epoll-based event-driven I/O, and benchmarking performance.
1
Sources
+0
24h
—
Growth
181d
Active
TCP ServerNon-Blocking I/OMultithreadingC++Thread Poolepoll