Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Process.SetQOSClass

Sets the Quality Of Service class for the current thread.

Component Version macOS Windows Linux Server iOS SDK
Process 16.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Process.SetQOSClass"; QOS )   More

Parameters

Parameter Description Example
QOS The new QOS class.
From highest level 5 down to background activity 1.
1

Result

Returns OK or error.

Description

Sets the Quality Of Service class for the current thread.

The Quality Of Service class for a thread tells the scheduler how to prioritize the thread and whether to run this on a faster or more efficient CPU core.

MacOS can run threads marked as background on an efficient core to safe battery life.
Linux does not allow to set higher priority (4 or 5) unless you have permissions to do so.

Returns a native error code or OK in case of success.

NameValueDescription
QOS_CLASS_USER_INTERACTIVE5The thread handles user input.
QOS_CLASS_USER_INITIATED4The user requested this action.
QOS_CLASS_DEFAULT3Default
QOS_CLASS_UTILITY2Utility thread running with reduced priority, e.g. menubar utility app.
QOS_CLASS_BACKGROUND1Background thread with reduced priority, e.g. backup.
QOS_CLASS_UNSPECIFIED0Unknown level.

You may use this on the FileMaker server to mark long running scripts doing maintenance work as background thread, so they can run on efficient thread.

Examples

Set QOS to background:

MBS( "Process.SetQOSClass"; 1 )

See also

Blog Entries

This function checks for a license.

Created 8th March 2026, last changed 8th March 2026


Process.SetFrontMost - ProcessActivity.List