I need a general idea how to create tasks in C programming for real time operating system which supports preemptive priority based scheduling, the system is configured to generate 1ms time slice.
My plan is, I should have function in the file tasks.c whose purpose is to create a task. In the main. c file I need to write a section of code that calls a function in task.c to create a task. all tasks must be created with some default priorities. Once the task has been created it should be run.
If I have missed any information please feel free to ask.
do you have any idea how you would do this?