What's the logger and TaskBrowser's priority ?

HI,

I saw that the TaskBrowser will disturb or preempt my other task which has
highest priority. It seems it has higher priority than my task, the same
with logger.
I think it's equal to ask what's the process's priority if it contain many
threads that have different priority?

What's the logger and TaskBrowser's priority ?

On Monday 16 March 2009 18:02:53 guoliang liu wrote:
> HI,
>
> I saw that the TaskBrowser will disturb or preempt my other task which has
> highest priority. It seems it has higher priority than my task, the same
> with logger.

Which (RT)OS / OROCOS_TARGET ?

The logger is not a thread. If you call "log(Info) <<"hello"<<endlog();" it
will be printed immediately from your current thread.

> I think it's equal to ask what's the process's priority if it contain many
> threads that have different priority?

The TaskBrowser runs with the same priority as the thread executing the main()
function. I'm not sure what you mean by preempting, because when it waits for
input, it doesn't do anything (ie it sleeps). For gnulinux, the main thread
has priority '0' (the lowest).

Peter