halayli / lthread

lthread, a multicore enabled coroutine library written in C
Other
814 stars 82 forks source link

Some confusions about schedule #45

Open wanghaEMQ opened 2 years ago

wanghaEMQ commented 2 years ago

Hi, good afternoon.

I read the source code, and I find the lthread looks good. BUT Is there still something needs to be done before being applied?

For example. In the webserver demo. Just one thread is working for polling, computing, and doing functions in lthreads. If I want to make lthread high-performance, Moving those computing tasks and functions to other pthreads would be better? Maybe I can send a msg to other pthreads to reduce the burdens of the main pthread(epoll thread)?