golang high concurrent network programming

1 golang server does not need to write it epoll

golang write server does not need to use epoll reactor model, because golang coroutine very cheap, you can turn on thousands of concurrent completion of a coroutine.

A coroutine memory for probably about 2KB, a thread take up memory probably about 2MB, a thread arrived in 1000 coroutine.

So, with golang write server program will be much easier.

 

Guess you like

Origin www.cnblogs.com/hustdc/p/11316440.html