讲解:RTOS Kernel、Python,c++、Java,c/c++R|C/C++

Task-List Management in the RTOS KernelⅠ IntroductionMuch of the administration in a real‐time kernel consists of list management. In this initial step, we create three different lists and operate them as follows:• Create functions that can input and extract elements from these lists.• Test the lists and see that you can handle various sizes of lists. From zero To many elements.• Remove list items from a list and put in another.Ⅱ ToolsIAR EWARM 5.5REALVIEW MDK 4.12Ⅲ RequirementThere are 3 lists (Timer List, Waiting List and Ready List) in the RTOS Kernel:Timer List:• The insertion of an element into the list, pass an integer with the function call. Insertion in the list is done so that the element with the lowest value of nTCnt appears first.• Extraction is always done from the front, i.e. at the head‐element.Waiting List:• A list, where the list is sorted so that the element with the lowest vaRTOS Kernel代做、代写Python,c++程序语言lue of TCB->Deadline is first.• Extraction made by the use of a pointer to the list element, struct l_obj * pBlockReady List• The element with the lowest value of TCB->Deadline is first placed first in the list.• Extraction is always done from the front, i.e. at the head‐element.Ⅳ Design of Data Structures Task Control Block:…Task List Node:…Task List:…Ⅴ Design of Operation Functions based on Timer List, Waiting List and Ready ListList* CreateTaskList (void); //create a null task list with 2 dummy node…Ⅵ Implementation of Operation Functions based on Timer List, Waiting List and Ready ListList* CreateTaskList (void); //create a null task list with 2 dummy node{ …}…Ⅶ Test of Operation Functions based on Timer List, Waiting List and Ready Listvoid main(){ …}Ⅷ ResultsDeliver the result of your test code for 3 lists by graphs or diagrams转自:http://www.3daixie.com/contents/11/3444.html

你可能感兴趣的:(讲解:RTOS Kernel、Python,c++、Java,c/c++R|C/C++)