StormHub / NetUV

.Net standard/Core binding for Libuv
Other
76 stars 20 forks source link

how can i use multi event loop? #70

Closed egmkang closed 6 years ago

egmkang commented 6 years ago

how can i use multi threads to improve the throughput?

StormHub commented 6 years ago

You can use one loop to dispatch incoming connections into multiple loops. I will add an example shortly.

egmkang commented 6 years ago

thank you very much

StormHub commented 6 years ago

Please have a look at the files under https://github.com/StormHub/NetUV/tree/dev/examples/LoopThread

egmkang commented 6 years ago

@StormHub thankds very much

http://docs.libuv.org/en/v1.x/guide/processes.html#sending-file-descriptors-over-pipes

the c# version is similar with the c version.