Hi.. recently i have an assignment to compare performance and time accuracy of RTOS and an ordinary os.
I have decided to show this by runnin a program which uses a lot of system calls in it as it slows down ordinary os more than rtos.
is this approach correct ?? or is thr any other ideas .
RTOS and Ordinary OS
- Colonel Kernel
- Member
- Posts: 1437
- Joined: Tue Oct 17, 2006 6:06 pm
- Location: Vancouver, BC, Canada
- Contact:
Re: RTOS and Ordinary OS
The distinguishing feature of an RTOS is not necessarily how fast the system calls are, but how predictable they are. Usually there are certain maximum bounds on the latency of each system call. This is how QNX works. QNX also provides a guaranteed interrupt response time, which is important for devices that need their interrupts serviced in real-time.
So, I would suggest designing an experiment that shows the variability in syscall/interrupt latencies in a non-real-time OS, and conversely in a RTOS.
So, I would suggest designing an experiment that shows the variability in syscall/interrupt latencies in a non-real-time OS, and conversely in a RTOS.
Top three reasons why my OS project died:
- Too much overtime at work
- Got married
- My brain got stuck in an infinite loop while trying to design the memory manager
Re: RTOS and Ordinary OS
Generally, a RTOS tends to be slower overall because maintaining the RT property comes with an overhead. It really only means that you guarantee that an RT event is processed in at most x milliseconds.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: RTOS and Ordinary OS
Hi,
There are actually two types of RTOS'es soft real time and hard real time . In soft real time systems it's 'okay' not to meet the time requirement , but in hard real time systems its actually a 'must' or else system is considered a failure . RTOS's are generally used in embedded systems and they generally do only a single task , but that single task must done well , ie they are usually domain specific . I would therefore second Colonel about experiment . But you should also try to compare performance of a 'specific task' with relation to the processor / memory used compared to that of a normal operating system .
Regards
Shrek
There are actually two types of RTOS'es soft real time and hard real time . In soft real time systems it's 'okay' not to meet the time requirement , but in hard real time systems its actually a 'must' or else system is considered a failure . RTOS's are generally used in embedded systems and they generally do only a single task , but that single task must done well , ie they are usually domain specific . I would therefore second Colonel about experiment . But you should also try to compare performance of a 'specific task' with relation to the processor / memory used compared to that of a normal operating system .
Regards
Shrek
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: RTOS and Ordinary OS
Not quite - a Real-Time OS is by definition hard real time. Windows and Linux for example can easily provide enough responsiveness to do soft real time work for you, and they are not generally considered a real-time OS.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: RTOS and Ordinary OS
Hi,
I am not an authority on these things , I have read many books however , the post was more of less nearly a recollection . I might have made a mistake . But wikipedia seems to agree with me . http://wikipedia/wiki/RTOS . Anyways wishing you a happy easter .
Regards
Shrek
I am not an authority on these things , I have read many books however , the post was more of less nearly a recollection . I might have made a mistake . But wikipedia seems to agree with me . http://wikipedia/wiki/RTOS . Anyways wishing you a happy easter .
Regards
Shrek
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: RTOS and Ordinary OS
Have you noticed that wikipedia describes soft or hard real-time in the context of tasks.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: RTOS and Ordinary OS
hi,
You are *correct* . I might have developed some misconceptions due to my sloppy reading habits .
Regards
Shrek
You are *correct* . I might have developed some misconceptions due to my sloppy reading habits .
Regards
Shrek