most of it is bypassing the kernel for network IO, keeping the CPU cache lines full, pinning threads to specific cpus and minimising/eliminating context switches. Any language can be used to achieve this, C++ simply gives you a little bit more control.