mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 18:17:02 +00:00
chore[doc]: update doc
This commit is contained in:
1 parent
da8e2f6b42
commit
a3d6b717df
1 file changed
+5
@@ -92,6 +92,11 @@ public final class TaskBus {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* EN: Use uid, sid, or hashcode to bind tasks to the same thread to improve the cache hit ratio of the CPU
|
||||
* CN: 通过uid,sid,或者hashcode来把任务绑定到相同的线程中来提高cpu的缓存命中率
|
||||
* <a href="https://zhuanlan.zhihu.com/p/439381000">系统性能调优之绑定cpu</a>
|
||||
*/
|
||||
private static int calTaskExecutorIndex(int taskExecutorHash) {
|
||||
return taskExecutorHash & EXECUTOR_MASK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user