mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.99k stars 436 forks source link

Socket reader and writer in different threads #303

Open SiFly opened 4 years ago

SiFly commented 4 years ago

Questions about MCTP and threads

  1. Is it possible to run a reader and writer in two different threads on the same socket (as allowed by conventional sockets). If so how does one arrange the context for the threads
  2. Is it possible for the initial connect to be done in one thread and later work on the socket to be done in different threads ?