diff --git a/net/src/main/java/com/zfoo/net/task/TaskBus.java b/net/src/main/java/com/zfoo/net/task/TaskBus.java index 1c360ffe4..0ef5a2817 100644 --- a/net/src/main/java/com/zfoo/net/task/TaskBus.java +++ b/net/src/main/java/com/zfoo/net/task/TaskBus.java @@ -92,6 +92,11 @@ public Thread newThread(Runnable runnable) { } + /** + * 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的缓存命中率 + * 系统性能调优之绑定cpu + */ private static int calTaskExecutorIndex(int taskExecutorHash) { return taskExecutorHash & EXECUTOR_MASK; }