[Libwebsockets] Thread pool example and performance
sas2016spss at gmail.com
Tue Apr 27 20:42:41 CEST 2021
Hi, I am checking the service thread example of http server eventlib in
It has a warning on top : "this is under development, it's not stable".
What part of this example is not stable ?
In a general situation of a high load https server on internet, serving
data from memory ( 2k -200K in request / response size) after some
calculations (for example, sort, search in linked list with 10k - 100K
items), with sufficient physical memory and CPU cores, and with the
consideration of pthread mutux lock/unlock, context switch overhead, which
model of libwebsocket will perform better: single thread model with event
lib, 1 main thread for business logic (sort, search) + 1 dedicated thread
for network I/O, or the thread pool one ? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets