Page 402 - ARM Based Microcontroller Projects Using MBED
P. 402

388                             15. Mbed RTOS PROJECTS

























                 FIG. 15.21  RTOS Timer example.



                                               15.12 EXERCISES


                 1. Explain what you understand from the term multitasking
                 2. Why is multitasking important in real-time systems?
                 3. Explain what a thread is?
                 4. Explain the advantages and disadvantages of the various scheduling algorithms
                 5. Three LEDs are connected to a Nucleo-F411RE development board. Write a program so the
                   LEDs flash in the following rate: LED1 every second, LED2 every 0.5s, LED3 every 100ms.
                 6. Explain what a mutex is and where it can be used
                 7. Explain the differences between a mutex and a semaphore
                 8. Explain where a mail can be used in a multitasking system
   397   398   399   400   401   402   403   404   405   406   407