{"id":5085,"date":"2019-03-27T16:33:54","date_gmt":"2019-03-27T16:33:54","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?page_id=5085"},"modified":"2025-07-21T12:04:57","modified_gmt":"2025-07-21T17:04:57","slug":"rtsched","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/rtsched\/","title":{"rendered":"rtsched"},"content":{"rendered":"<h3>Purpose:<\/h3>\n<dl>\n<dd>Set the real-time scheduling policy and priority for a specified process or for a new command to be executed.<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>rtsched<\/strong> &lt;-s scheduler&gt; &lt;-p priority&gt; command [arguments]<\/p>\n<p>or<\/p>\n<p><strong>rtsched<\/strong> &lt;-s scheduler&gt; &lt;-p priority&gt; &lt;-P pid&gt;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 101.059%; height: 296px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr style=\"height: 128px;\">\n<td style=\"width: 20.247%; height: 128px;\">\n<p>-s scheduler<\/p>\n<\/td>\n<td style=\"width: 114.918%; height: 128px;\">\n<p>Specify one of the following scheduler policies:<\/p>\n<ul>\n<li>SCHED_FIFO<\/li>\n<li>SCHED_RR<\/li>\n<li>SCHED_OTHER<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 20.247%; height: 56px;\">\n<p>-p priority<\/p>\n<\/td>\n<td style=\"width: 114.918%; height: 56px;\">\n<p>Specify the task priority.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 20.247%; height: 56px;\">\n<p>command [arguments]<\/p>\n<\/td>\n<td style=\"width: 114.918%; height: 56px;\">\n<p>Specify the command and its optional arguments to run with the specified scheduling.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 20.247%; height: 56px;\">-P pid<\/td>\n<td style=\"width: 114.918%; height: 56px;\">\n<p>Specify a currently executing process ID to set the scheduling for.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<div>rtsched\u00a0\u00a0 -s SCHED_FIFO -p 10 a.out<\/div>\n<div>\u00a0<\/div>\n<div>The above example executes file a.out with SCHED_FIFO at a priority of 10.<\/p>\n<p>rtsched\u00a0 -s SCHED_RR -p 10 -P 23131<\/p>\n<p>The above example executes the task corresponding to pid 23131 with SCHED_RR at a priority of 10.<\/p><\/div>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>This program must run as root.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Set the real-time scheduling policy and priority for a specified process or for a new command to be executed. Enter: rtsched &lt;-s scheduler&gt; &lt;-p priority&gt; command [arguments] or rtsched &lt;-s scheduler&gt; &lt;-p priority&gt; &lt;-P pid&gt; Where: -s scheduler Specify one of the following scheduler policies: SCHED_FIFO SCHED_RR SCHED_OTHER -p priority Specify the task priority. [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5085","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/5085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=5085"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/5085\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=5085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}