> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# os_threads_* 会话设置

> 属于 os_threads_* 生成组的 ClickHouse 会话设置。

这些设置可在 [system.settings](https://clickhouse.com/docs/zh/reference/system-tables/settings.md) 中查看，并由 [源码](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) 自动生成。

## os\_threads\_nice\_value\_materialized\_view

类型

Int32

默认值

0

materialized view 线程的 Linux nice 值。值越小，CPU 优先级越高。

需要 CAP\_SYS\_NICE 能力，否则为空操作。

可能的值：-20 到 19。

## os\_threads\_nice\_value\_query

**别名**: `os_thread_priority`

类型

Int32

默认值

0

查询处理线程的 Linux nice 值。值越低，CPU 优先级越高。

需要 CAP\_SYS\_NICE 能力，否则为空操作。

可能的值：-20 到 19。
