RTOS and Ordinary OS

Programming, for all ages and all languages.
Post Reply
asdfgh
Member
Member
Posts: 42
Joined: Fri Apr 18, 2008 9:14 pm

RTOS and Ordinary OS

Post by asdfgh »

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 .
User avatar
Colonel Kernel
Member
Member
Posts: 1437
Joined: Tue Oct 17, 2006 6:06 pm
Location: Vancouver, BC, Canada
Contact:

Re: RTOS and Ordinary OS

Post by Colonel Kernel »

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.
Top three reasons why my OS project died:
  1. Too much overtime at work
  2. Got married
  3. My brain got stuck in an infinite loop while trying to design the memory manager
Don't let this happen to you!
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: RTOS and Ordinary OS

Post by Kevin »

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.
Developer of tyndur - community OS of Lowlevel (German)
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: RTOS and Ordinary OS

Post by DeletedAccount »

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
User avatar
Combuster
Member
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

Post by Combuster »

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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: RTOS and Ordinary OS

Post by DeletedAccount »

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 :oops: . But wikipedia seems to agree with me :mrgreen: . http://wikipedia/wiki/RTOS . Anyways wishing you a happy easter :D .

Regards
Shrek
User avatar
Combuster
Member
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

Post by Combuster »

Have you noticed that wikipedia describes soft or hard real-time in the context of tasks.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: RTOS and Ordinary OS

Post by DeletedAccount »

hi,

You are *correct* . I might have developed some misconceptions due to my sloppy reading habits .

Regards
Shrek
Post Reply