You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss aler
8000
t
AFAIK, UMS can only utilize a single CPU at any time. It has the similar model as other lightweight thread libraries, except that it has system thread context. To support multicore, I think you can:
Use a thread pool, while in each thread, separate UMS is applied.
Choose another N:M thread model runtime, like go-runtime.
If you find a better method for UMS utilizes multicore, please tell me. Thanks.
我测试之后发现,ums与fiber一样仅能使用一个核心进行处理,而thread可以写满cpu,是有什么特殊设置吗?https://docs.microsoft.com/zh-cn/windows/desktop/ProcThread/user-mode-scheduling中提到“efficiently run many threads concurrently on multiprocessor or multicore systems”。看上去应该是可以的吧?
The text was updated successfully, but these errors were encountered: