# hint\_low\_cpuutil

Source: [https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qape_hint_low_cpu_util.html](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qape_hint_low_cpu_util.html)

通知系统存在 CPU 利用率较低的线程，不需要使用高性能核心。例如，执行后台工作的线程，即使负载偶尔升高也不需要高性能核心。该提示不会设置线程调度运行时使用的核心频率，而是通过 boost\_cpu API 直接或间接地将选择权留给DCVS调度程序。

hint_low_cpuutil()Copy to clipboard

注意：

此 API 需要谨慎使用，因为任何标记为低利用率的线程都不会在大型核心上运行。任何线程提示（例如 high\_cpuutil、low\_cpuutil 和 thread\_pipeline）在线程的整个生命周期内都将保留，除非应用程序使用 release\_thread\_hints API 将其显式释放，或者在应用程序进入后台或终止时通过自动释放机制将其显式释放。

注释： hint\_low\_cpuutil / hint\_high\_cpuutil 与线程关联不同。使用线程 CPU 关联，开发人员需要确定线程可以运行的群集配置和核心。对于 hint\_high\_cpuutil，线程可以在大核/高级大核上的任何内核上运行，而对于 CPU 关联，当内核忙于其他线程时，高利用率线程可能会在队列中等待，关联可能会产生反效果。Hint\_low\_cpuutil 也有类似的行为。

## 参数

| 参数 | API 类型 | 数据类型 | 说明 |
| --- | --- | --- | --- |
| tid | Java | long | 需要设置为低 CPU 利用率时线程 TID |
| tid | 原生 | uint32 | 需要设置为低 CPU 利用率时线程 TID |
|  |  |  |  |

## 返回结果

| API 类型 | 返回结果 | 说明 |
| --- | --- | --- |
| Java | int | <ul class="ul"><br>                <li class="li">0 - 成功</li><br><br>                <li class="li">-1 – 请求 Hint 失败</li><br><br>                <li class="li">-2 - 建立会话失败；在此 API 之前调用 set_pkg</li><br><br>              </ul> |
| 原生 | int8 | <ul class="ul"><br>                <li class="li">0 - 成功</li><br><br>                <li class="li">-1 – 请求 Hint 失败</li><br><br>                <li class="li">-2 - 建立会话失败；在此 API 之前调用 set_pkg</li><br><br>              </ul> |
|  |  |  |

**上一级主题：** [QAPE API](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qape_api.html)

Last Published: Jun 22, 2023

[Previous Topic
hint\_high\_cpuutil](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/qape_hint_high_cpu_util.md) [Next Topic
hint\_thread\_pipeline](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/qape_hint_thread_pipeline.md)