2008-03-12 13:16:31     Priorities

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-03-12 13:16:31     Priorities

Linux Newbie (INDIA)

Message: 52398   

 

Hi,

 

Please clarify me the followin doubts.

 

1. Is current kernel pre-emtive? If not do I need to appliy any patch to make it pre-emtive

 

2. In my user application, I am using pthreads. For pthreads, following options are configurable during thread creation i.e. RoundRobin, FIFO & others.

 

    If I want to have pthreads implemented as pre-emtive scheduling, how to do that?

    Is it enough If I use threads with different priorities?

    Or is there anyother patch avaliabe?

 

Thanks in Advance!!!

QuoteReplyEditDelete

 

 

2008-03-12 14:07:34     Re: Priorities

Mike Frysinger (UNITED STATES)

Message: 52400    only non-preempt and voluntary preempt is supported at the moment ... full preempt is not supported at the moment ... but preempt really doesnt affect inter-thread scheduling.  all thread scheduling is handled in userspace and acts according to the sched funcs you've called.

QuoteReplyEditDelete

 

 

2008-03-13 15:23:40     Re: Priorities

Linux Newbie (INDIA)

Message: 52475   

 

"only non-preempt and voluntary preempt is supported at the moment ... full preempt is not supported at the moment ..."

 

you mean the above statement in terms of kernel space rite? is it possible to configure non-preempt or voluntary preempt? if yes in which file?

 

So in userspace, if I use pthreads, then whatever scheduling policy is supported by pthreads will be supported in uclinux (blackfin)...is my understanding correct?

 

 

QuoteReplyEditDelete

 

 

2008-03-13 15:40:55     Re: Priorities

Mike Frysinger (UNITED STATES)

Message: 52480    preempt is controlled in the kernel configuration like any other option

 

pthreads is pthreads ... it doesnt really matter that you're running on a Blackfin processor

Attachments

    Outcomes