[Development] Thread priority on Linux - Qt 6.9.1

Thiago Macieira thiago.macieira at intel.com
Sat Jun 28 09:25:43 CEST 2025


On Saturday, 28 June 2025 00:20:01 Central European Summer Time Art Greenberg 
wrote:
> Actually, its not necessary to be root to use the pthreads priority API.
> Appropriate settings in /etc/security/limits.conf enable non-root users
> to alter thread priority.

I believe you're talking about the rtprio limit, or RLIMIT_RTPRIO option to 
setrlimit(2) call. That's still default to 0 (no real time privileges) on the 
kernel, which means it still requires admin action to enable.

> I note that there are several calls to setPriority() found in the Qt
> libraries, such as Qt3D.

They're just no-op on Linux. As Tim said in his reply, applications can 
request RT priority from RTKit.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5150 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20250628/4b8c7dc8/attachment.bin>


More information about the Development mailing list