Signed-off-by: baishimin <2258359443@qq.com>
This commit is contained in:
baishimin 2024-10-21 16:56:26 +08:00
parent b1e2f1ac7e
commit a2c26f4a6a

View File

@ -844,10 +844,6 @@ void TaskManager::InitTaskManager(napi_env env)
}
if (EnableFfrt()) {
HILOG_INFO("taskpool:: apps use ffrt");
ffrt_set_cpu_worker_max_num(ffrt::qos_background, 1);
ffrt_set_cpu_worker_max_num(ffrt::qos_utility, 12); // 12 : worker max num
ffrt_set_cpu_worker_max_num(ffrt::qos_default, 12); // 12 : worker max num
ffrt_set_cpu_worker_max_num(ffrt::qos_user_initiated, 12); // 12 : worker max num
} else {
HILOG_INFO("taskpool:: apps do not use ffrt");
}