Home > Back-end >  Linux under two long chain is established
Linux under two long chain is established

Time:12-15

Want to use epoll establish two long chains, a after receiving the message processing, again through the thread handle receiving data, the results through the long chain is sent to a third party, the second is the first long chain wait for events, processing results, the processing threads need to put it in again into a wait state, or directly to send a second long chain lock this thread

CodePudding user response:

An epoll is solved? Monitoring, speaking, reading and writing can at the same time,
Actually the PThread threads seem quite high efficiency, and the basic same, epoll,

CodePudding user response:

reference 1st floor ctrigger response:
an epoll is solved? Monitoring, speaking, reading and writing can at the same time,
Actually the PThread threads seem quite high efficiency, and basic same, epoll,

Epoll just to create long chains and monitoring, data can be in after receiving into the queue
  • Related