3 ms·
I think I would consider implementing it as 1:1 threading where every thread=guild runs its own set of green threads. That likely would be faster than having O
by Someone 10y ago
I think I would consider implementing it as 1:1 threading where every thread=guild runs its own set of green threads.
That likely would be faster than having OS threads in each guild that use PS locks to prevent running >1 of them concurrently.
- _ko1 10y agoCRuby/MRI supports C-extension which can use TLS (thread-local-storage). So that each Ruby threads runs on one OS thread.