Hi,
     Yes, i agree to ur viewpoint,but the problem with me is that the
tasks are generally interrrupt driven in the system ,i.e they don't need
to run if external interrupts don't occur. So, I have to assign priorities
to the tasks as some tasks are so critical that i can not afford to let
other tasks run when they occur. What I would love to know is that ,is
there are some standrad methods defined or direction about the paths to be
followed  while assigning the priorities for the tasks.I have a total of
32 tasks residing in the system.What are the things that i should
calculate before assigning priorities to them.Is there any pointers
available anywhere?
  -Again thanx for your patience
     Sourav


Paul Koning wrote:

> >>>>> "Sourav" == Sourav Chakraborty <[EMAIL PROTECTED]> writes:
>
>  Sourav> Hi, This is a bit of a general question,but however i would
>  Sourav> be glad if anyone could provide me with the pointers as how
>  Sourav> to assign priorities to various tasks for a real time
>  Sourav> system.
>
> Here's one view that has served me well in building reliable systems:
>
> Avoid the use of priority if at all possible, and if needed use it as
> little as possible.  Instead, have your tasks designed so they have
> well defined completion time bounds (or time bounds for time to yield
> the CPU to other tasks).
>
> One of the nasty ways systems can fail is that they work fine until
> presented with a very high load, at which point critical things don't
> get done anymore because other things were given higher priority and
> they now consume 100% of the CPU.  If you don't use priority and your
> tasks all have time bounds, this failure cannot happen, and your
> system is stable under all loads.
>
> To put it differently: if you use priority, it is far harder to prove
> liveness and time bounds for any tasks other than the subset that uses
> the highest priority.  (And if you use interrupts, it gets even
> harder.)
>
>         paul

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to