5 ms·
thanks for the feedback. I'll make sure to document it more extensively. When you create a pthread, it creates an lthread scheduler in it, and any lthread crea
by halayli 15y ago
thanks for the feedback. I'll make sure to document it more extensively.
When you create a pthread, it creates an lthread scheduler in it, and any lthread created in this pthread will get associated with the pthread itself. A typical example is to create a global listener socket fd and have several pthreads, each accepting on the same fd and creating lthreads to handle it. the lthreads created in each pthread will stay in their pthread.
It has no limitations to traditional single-thread coroutines btw.