Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2014 21:45:18 -0300
From:      Fred Pedrisa <fredhps10@hotmail.com>
To:        "'Adrian Chadd'" <adrian@freebsd.org>
Cc:        'freebsd-current' <freebsd-current@freebsd.org>
Subject:   RES: Thread Scheduler Priority
Message-ID:  <COL131-DS39D29CA3AE34C4994CF3DB0260@phx.gbl>
In-Reply-To: <00f901cf7afd$aba70cc0$02f52640$@hotmail.com>
References:  <COL131-DS40CDAE671F4A6060C9A85B0240@phx.gbl> <CAJ-VmokR=FgkzW0NMTzp_TUY5-hkq8=YQ=AH3VzXfMC=jVkRwg@mail.gmail.com> <00f901cf7afd$aba70cc0$02f52640$@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Any clue on this ? :(

-----Mensagem original-----
De: owner-freebsd-current@freebsd.org
[mailto:owner-freebsd-current@freebsd.org] Em nome de Fred Pedrisa
Enviada em: quinta-feira, 29 de maio de 2014 02:19
Para: 'Adrian Chadd'
Cc: 'freebsd-current'
Assunto: RES: Thread Scheduler Priority

Hello,

Yes.

-----Mensagem original-----
De: owner-freebsd-current@freebsd.org
[mailto:owner-freebsd-current@freebsd.org] Em nome de Adrian Chadd Enviada
em: quinta-feira, 29 de maio de 2014 02:18
Para: Fred Pedrisa
Cc: freebsd-current
Assunto: Re: Thread Scheduler Priority

are you doing this all as root?


-a


On 28 May 2014 22:12, Fred Pedrisa <fredhps10@hotmail.com> wrote:
> Hi, Guys.
>
>
>
> How can I adjust a certain thread to have the maximum system priority 
> in the scheduler ?
>
>
>
> I've tried doing it this way :
>
>
>
>                                                /* Set thread priority. 
> */
>
>                                                if 
> (pthread_getschedparam(ts[gnThreadID], &police, &param[gnThreadID]) !=
> 0)
>
>                                                {
>
>                                                                error 
> ("Unable to get priority");
>
>                                                                return 
> 1;
>
>                                                }
>
>
> param[gnThreadID].sched_priority = 99;
>
>                                                if 
> (pthread_setschedparam(ts[gnThreadID], police, &param[gnThreadID]) !=
> 0)
>
>                                                {
>
>                 error("Unable to set priority");
>
>                 return 1;
>
>                                                }
>
>
>
> However, in 'top', I don't see the process threads switching to -92 
> priority, like other threads in the system, is something I did wrong 
> or maybe I might be missing something ?
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?COL131-DS39D29CA3AE34C4994CF3DB0260>