Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/22/05 22:07
Read: times


 
#88187 - Tasks and Functions
Responding to: ???'s previous message
Erik Malund said:
I have seen far too many applications using a so called RTOS that fail to realise the conditions for using a such and end up with the nightmare of the occasional random failure.

I agree 100%. Using an RTOS on an 8051 is a waste of time. Fortunately not I have not seen many people try to do it. However, I believe there are techniques we can steal from the RTOS folks that will help us create better 8051 solutions. That is my only interest in them.

You stated in an earlier poist that one of the fancy names for a "task processor" basically was the workloop.

Correct. Almost any book on RTOS will say this. I have one in front of me as I write this includes the following example:

void main(void) 
 { 
   while(TRUE) { 
     task1(); 
     task2(); 
     task3(); 
   } 
 }

Each task must do its work quickly and return so that other tasks can run. This technique is referred to by various names including cyclical executive, foreground/background, polling loop, and super loop to name a few.

How is calling them "tasks" instead of functions going to make a difference??


Tasks are functions with the special property that they need be able to run concurrently. It is therefore crucial to the success of a real time design that tasks (or concurrent functions - call them what you like) are identified.

Ian



List of 44 messages in thread
TopicAuthorDate
please expalin RTOS, UnRTOS, MTOS...            01/01/70 00:00      
   Os's            01/01/70 00:00      
      thanks ...and now for Erik...            01/01/70 00:00      
         MicroC O/S II works fine            01/01/70 00:00      
      Threads?            01/01/70 00:00      
         Threads, Real Time and Multitasking            01/01/70 00:00      
            Just for clarification            01/01/70 00:00      
               Multiprocessing            01/01/70 00:00      
                  Multiprocessing            01/01/70 00:00      
                  Further clarification            01/01/70 00:00      
         Threads            01/01/70 00:00      
      Windoze            01/01/70 00:00      
         More Windoze            01/01/70 00:00      
            Ah...            01/01/70 00:00      
      Basic Info            01/01/70 00:00      
         extract from the above with translation            01/01/70 00:00      
            Completed            01/01/70 00:00      
               who are we            01/01/70 00:00      
                  Tics            01/01/70 00:00      
               the rest            01/01/70 00:00      
   But wait..there's more!            01/01/70 00:00      
   Real Time Info            01/01/70 00:00      
      hard/soft            01/01/70 00:00      
         Real Time Info            01/01/70 00:00      
   m,y opinion            01/01/70 00:00      
      why so late            01/01/70 00:00      
         one more thing            01/01/70 00:00      
            Architecture Independent            01/01/70 00:00      
               just to clarify            01/01/70 00:00      
                  No.            01/01/70 00:00      
      RTOS on a 51??            01/01/70 00:00      
         not the thing but the word            01/01/70 00:00      
            A Distinction (with a difference)            01/01/70 00:00      
               Tasks or Applications?            01/01/70 00:00      
            Multi Tasking            01/01/70 00:00      
               a dot matrix printer must be one task            01/01/70 00:00      
                  One task or three            01/01/70 00:00      
                     pray explain            01/01/70 00:00      
                        Tasks and Functions            01/01/70 00:00      
                           we are getting closer            01/01/70 00:00      
                              Not that far apart            01/01/70 00:00      
                              I doubt we are            01/01/70 00:00      
                           discussed            01/01/70 00:00      
                              TTCS            01/01/70 00:00      

Back to Subject List