OpenBSD threads priorities

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Can anybody explain how to work with thread priorities in OpenBSD?



Information about this question in MAN pages is poor, it does not give clear understanding. In particular:



sched_get_priority_min/max gives range. I have OpenBSD 6.3 amd64, and range is 0-31. 0 is lowest?



If i see default priority policy/level of first created thread of process, i see: (SCHED_OTHER, 0). If 0 is lowest, how can i specify idle thread? Or priority below normal? Can i only increase priority? Which priority have system threads? By idea, default priority level has to be normal.



MAN page pthread_setschedparam() says: "The scheduling policy for a thread can either be SCHED_FIFO (first in, first out) or SCHED_RR (round-robin)". Why not SCHED_OTHER? First default thread has this policy.



Can anybody make it clear?



I am newbie in OpenBSD. In Windows i can set idle priority, and i see that this thread is scheduled only when there is no other work in a system. I can set time_critical, and this thread has almost all processor time.



How to resolve these tasks in OpenBSD? What are analogues of Windows priorities: idle, lowest, below_normal, normal, above_normal, highest, time_critical?



How to make choice between policies? FIFO, OTHER or RR? Are these policies equal in granting processing time when priority level is the same?



A lot of questions without answers in MAN pages.










share|improve this question







New contributor




Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    Can anybody explain how to work with thread priorities in OpenBSD?



    Information about this question in MAN pages is poor, it does not give clear understanding. In particular:



    sched_get_priority_min/max gives range. I have OpenBSD 6.3 amd64, and range is 0-31. 0 is lowest?



    If i see default priority policy/level of first created thread of process, i see: (SCHED_OTHER, 0). If 0 is lowest, how can i specify idle thread? Or priority below normal? Can i only increase priority? Which priority have system threads? By idea, default priority level has to be normal.



    MAN page pthread_setschedparam() says: "The scheduling policy for a thread can either be SCHED_FIFO (first in, first out) or SCHED_RR (round-robin)". Why not SCHED_OTHER? First default thread has this policy.



    Can anybody make it clear?



    I am newbie in OpenBSD. In Windows i can set idle priority, and i see that this thread is scheduled only when there is no other work in a system. I can set time_critical, and this thread has almost all processor time.



    How to resolve these tasks in OpenBSD? What are analogues of Windows priorities: idle, lowest, below_normal, normal, above_normal, highest, time_critical?



    How to make choice between policies? FIFO, OTHER or RR? Are these policies equal in granting processing time when priority level is the same?



    A lot of questions without answers in MAN pages.










    share|improve this question







    New contributor




    Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Can anybody explain how to work with thread priorities in OpenBSD?



      Information about this question in MAN pages is poor, it does not give clear understanding. In particular:



      sched_get_priority_min/max gives range. I have OpenBSD 6.3 amd64, and range is 0-31. 0 is lowest?



      If i see default priority policy/level of first created thread of process, i see: (SCHED_OTHER, 0). If 0 is lowest, how can i specify idle thread? Or priority below normal? Can i only increase priority? Which priority have system threads? By idea, default priority level has to be normal.



      MAN page pthread_setschedparam() says: "The scheduling policy for a thread can either be SCHED_FIFO (first in, first out) or SCHED_RR (round-robin)". Why not SCHED_OTHER? First default thread has this policy.



      Can anybody make it clear?



      I am newbie in OpenBSD. In Windows i can set idle priority, and i see that this thread is scheduled only when there is no other work in a system. I can set time_critical, and this thread has almost all processor time.



      How to resolve these tasks in OpenBSD? What are analogues of Windows priorities: idle, lowest, below_normal, normal, above_normal, highest, time_critical?



      How to make choice between policies? FIFO, OTHER or RR? Are these policies equal in granting processing time when priority level is the same?



      A lot of questions without answers in MAN pages.










      share|improve this question







      New contributor




      Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Can anybody explain how to work with thread priorities in OpenBSD?



      Information about this question in MAN pages is poor, it does not give clear understanding. In particular:



      sched_get_priority_min/max gives range. I have OpenBSD 6.3 amd64, and range is 0-31. 0 is lowest?



      If i see default priority policy/level of first created thread of process, i see: (SCHED_OTHER, 0). If 0 is lowest, how can i specify idle thread? Or priority below normal? Can i only increase priority? Which priority have system threads? By idea, default priority level has to be normal.



      MAN page pthread_setschedparam() says: "The scheduling policy for a thread can either be SCHED_FIFO (first in, first out) or SCHED_RR (round-robin)". Why not SCHED_OTHER? First default thread has this policy.



      Can anybody make it clear?



      I am newbie in OpenBSD. In Windows i can set idle priority, and i see that this thread is scheduled only when there is no other work in a system. I can set time_critical, and this thread has almost all processor time.



      How to resolve these tasks in OpenBSD? What are analogues of Windows priorities: idle, lowest, below_normal, normal, above_normal, highest, time_critical?



      How to make choice between policies? FIFO, OTHER or RR? Are these policies equal in granting processing time when priority level is the same?



      A lot of questions without answers in MAN pages.







      openbsd priority thread pthreads






      share|improve this question







      New contributor




      Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 11 mins ago









      Mikola Akbal

      1




      1




      New contributor




      Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Mikola Akbal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Mikola Akbal is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476929%2fopenbsd-threads-priorities%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Mikola Akbal is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Mikola Akbal is a new contributor. Be nice, and check out our Code of Conduct.












          Mikola Akbal is a new contributor. Be nice, and check out our Code of Conduct.











          Mikola Akbal is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476929%2fopenbsd-threads-priorities%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay