Author Options:

What is List and Queue in Embedded Programming Answered

What is List and Queue in RTOS Programming. what is use of List and Queue routine in RTOS.
Generally list means number of tasks. and queue means number of task run in queue   



1 year ago

I'm not conversant with RTOS, but Lists and Queues are ATDs -- abstract data types. They differ in how the data can be accessed.

A list datatype (or object) offers a number of functions for accessing data. A List can traversed (forward or backwards), accessed by index #, sorted, etc.

A queue is a first in-first out datatype.

The functions for each datatype will vary by language, of course. If RTOS uses them for task interfacing, then the choice will be dependent on how the programmer wishes to access the tasks.