I am trying to understand difference between mutex and semaphore in any operating system
For example, we have two treads T1 and t2, which are sharing the ame resources. Both T1 and T2 can't...
Type: Posts; User: Player777
I am trying to understand difference between mutex and semaphore in any operating system
For example, we have two treads T1 and t2, which are sharing the ame resources. Both T1 and T2 can't...
As I mentioned earlier, the architecture of FreeRTOS is very complex, which I do not understand at all.
My only question here is how to create a function in which the task can be created
I have seen all the threads many times but I have never seen that we have discussed this topic. Please don't compare this question with FreeRTOS. Its architecture is complex to understand the concept
No doubt you helped me in my previous threads to understand the scheduling. The programming structure of FreeRTOS is very difficult and it is very difficult to understand.
The question I asked,...
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.
...
yes, It's pre-emptive design
currently working with PIC18F45K80, MPLAB Xc8, C language, Planning to move on 32 PIC very soon
I want to write my own code for scheduling without freeRTOS just for learning. I am having trouble to making it.
This is what I want to implement with 1ms system tick
When there are multiple task's, scheduler need to decide when and which one task should be run on machine
Task should be switched at 1ms time interval
I have successfully ported freertos on 32 bit micro. I done few experiments for learning.
I want to design a cooperative scheduling for 32 -bit microcontroller. I have read many links and watched many youtube videos but have no idea how to start design
This is a specification I...
When I set same priority for all task's then result of all task's should be same but when I ran my code I am not getting such result
/* FreeRTOS.org includes. */
#include...
No it's different. I am trying to figure out how long tasks are executing
I am looking help to understand free rtos example code. I am trying to figure out how scheduler works in the following code
/* FreeRTOS.org includes. */#include "FreeRTOS.h"
#include "task.h"...
I have started reading user manual of FreeRTOS. You said start with paper and pencil. Can you explain little bit how to start?
Do you mean to draw flowchart, block diagram, state diagram etc.
I am not thinking of making real time operating system. I just want to understand the process of how multiple files work together to decide which task should be run on schedule time. Like if you have...
How to write code for round robin scheduling
I want to write code for round robin scheduling
16386
#include<stdio.h>
int main(void)
When I was beginner I was having trouble to write code for microcontroller but now I can write code for any peripheral of microcontroller. I can write code for whatever device is connected with...
sure I will start with paper and pencil but I don't have any idea how to start with top down approach. Can you help me
There are two approaches can use in software design and implementation:
Top-down design
Bottom-up design
I want to follow Top-down approach to design RTOS
For Example:
Thank you Salem for saving me from big trouble. I understand completely now
There are many type of scheduling. Is it type of preemptive scheduling? I think yes
I am trying to understand the concept of Real Time Scheduling System. I tried my best to understand the basics. I have read chapters of many books, also saw many tutorial, watched videos but I still...
I am working on embedded system. I want to write a c program to make simple real time scheduler. System can do multiple task's. scheduler decides which task can run at a given time.
I am trying...
I want to reverse them in place
Imagine numbers are stored as following
0x00 = 1
0x01 = 2
0x02 = 3
0x03 = 4
0x04 = 5
I have written program that suppose to print reverse number for given size
#include<stdio.h>
int reverse ( int *p, int a[5])
{
int i = 5;
for ( i = 5; i > 0; i--)
{
volatile means value of variable may be change at anytime
In example, compiler know that foo is set to 0 and compiler will never look into while loop but by external even when foo become 1 then...