[okl4-developer] What's Wombat priority?

Nelson Tam nelson at ok-labs.com
Wed Apr 2 01:47:43 EST 2008


Hi Antonin,

On 02/04/2008, at 1:34 AM, Antonin SUBTIL wrote:
>
> I had a look to Sconscript in Iguana, and here is my question :
> "weaver = env.WeaverIguanaProgramServer(server_name =  
> "OKL4_HELLO_SERVER", priority=50)"
> Are priorities on 0-255 ? Is 255 big or low priority?
> What's Wombat priority? (If I'm trying to put some real-time server,  
> I should know it... yet I was able too find it)
>
> Do anyone have a doc of this function? There's other arguments for  
> Linux I would like to understand...


The maximum priority is 255 and minimum is 0, with higher numbers  
always being scheduled before lower numbers.

Interrupt threads are typically set to 255, root server is 254, and  
idle thread is 0.  Other threads should be set somewhere in between.

Furthermore, the two linux kernel threads are set to 100 and 99  
respectively.  Linux user threads have a priority of 98.

If you are programming a real-time server you should set it at (253 >  
priority > 100).
--
(nt)

Nelson Tam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1560 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20080402/8ee47c0f/attachment.bin 


More information about the Developer mailing list