??? 04/27/05 19:00 Read: times |
#92479 - Ok why RTOS? Responding to: ???'s previous message |
I Payed Rs.45000 to understand that my dear friend.
Anyway have you heard of JVM- Java virtual machine ? RTOS is Like a JVM for an embedded engineer. Suppose you have been assigned to write a code for an application based on x86 platform today since targets boards are cheap. A year later you are assigned to port the code to say a TI MSP430 .. You will be dead..by the time the product rolls out. Here's where a RTOS come into picture. You write your code say in C which runs on the RTOS u are using. Remember C source code is portable not the executables so you can't surely take executables from x86 to MSP so you recompile your RTOS say( I have learn't Vxworks)Vxworks for msp430 I take my source and put it into this project , I may need to make small changes but not much. So I can roll out my products faster. memory managment,hardware bus managments... all the hardware is taken care by rtos you don't need to sweat learning all processors. For a company if it can get faster output it's the best thing. Also the skill level of employees required isn't too much since indepth hardware knowledge isn't that important. All said and done , a c code or a hex is much smaller more efficient and also a good hardware knowledge is what makes the difference between a program and a very good program. the costs of putting large storage spaces may be prohibitive for RTOS usage , hence you could do it in hex /c Also one important point a GPOS like Windows has no user definable premetive scheduling mechanism for tasks, whereas a ROS had this feature Hope this will help you.I don't care if it's your home work. But if you intend to use Rtlinux I want to learn using it too. Bye Deepak I am putting down an example form my vxworks course #include<vxworks.h> #include<iolib.h> #include<selectlib.h> int fd; void t1() { char nm[30]; write(fd,"HELLO",6); read(fd,nm,30); printf("%s",nm); close(fd); } void root_sel() { pipeDevCreate("TEST PIPE",10,100); fd = open("TEST PIPE",O_RDWR,NULL); taskSpawn("TEST',23,NULL,1000,t1,0,0,0,0,0,0,0,0,0,0,0); } chis coe is creating a pipe device and the spawning/forking a task,The task writes and reads the pipe using the file dispcriptor obtained during spawning process |
Topic | Author | Date |
RTOS | 01/01/70 00:00 | |
The typical tradeoffs.... | 01/01/70 00:00 | |
OS vs. language | 01/01/70 00:00 | |
os vs language | 01/01/70 00:00 | |
OS are used at same place where you use | 01/01/70 00:00 | |
OS and the '51 | 01/01/70 00:00 | |
OS and the '51 | 01/01/70 00:00 | |
511 pages | 01/01/70 00:00 | |
URL please | 01/01/70 00:00 | |
web link | 01/01/70 00:00 | |
web links | 01/01/70 00:00 | |
NicheTask != Nucleus | 01/01/70 00:00 | |
Ok why RTOS? | 01/01/70 00:00 | |
one strange company | 01/01/70 00:00 | |
No big kernels for little MCUs | 01/01/70 00:00 | |
thats nice | 01/01/70 00:00 | |
OS irrelevant | 01/01/70 00:00 | |
pllease Explain | 01/01/70 00:00 | |
re pllease Explain | 01/01/70 00:00 | |
RTOS when? | 01/01/70 00:00 | |
not when, but how | 01/01/70 00:00 | |
Job and Tasks | 01/01/70 00:00 | |
name one | 01/01/70 00:00 | |
Example | 01/01/70 00:00 | |
if you need it | 01/01/70 00:00 | |
Another Example | 01/01/70 00:00 | |
an example | 01/01/70 00:00 | |
Problem with Interrupt priorities | 01/01/70 00:00 | |
Same priority ? | 01/01/70 00:00 | |
LOOKS LIKE HOMEWORK!!!!!! | 01/01/70 00:00 | |
RE LOOKS LIKE HOMEWORK!!!!!! | 01/01/70 00:00 | |
Dont get angry. | 01/01/70 00:00 | |
On an 8051 | 01/01/70 00:00 | |
multicoder | 01/01/70 00:00 | |
quite likely | 01/01/70 00:00 | |
Pre-emptive multitasking | 01/01/70 00:00 | |
RTOS-VxWorks | 01/01/70 00:00 | |
some posts are off-topic | 01/01/70 00:00 | |
Not very useful | 01/01/70 00:00 | |
'C' is not the only language | 01/01/70 00:00 | |
U cn us RTlinux and VxWorks | 01/01/70 00:00 | |
RTOS | 01/01/70 00:00 | |
honesty | 01/01/70 00:00 | |
8 bit RToS | 01/01/70 00:00 | |
How could I have been so wrong! | 01/01/70 00:00 | |
Perhaps you practice :)) | 01/01/70 00:00 | |
Well practiced! | 01/01/70 00:00 | |
Task Switching Overhead | 01/01/70 00:00 | |
Has the valve been invented yet? | 01/01/70 00:00 | |
Tunnel vision | 01/01/70 00:00 | |
because of tunnel vision | 01/01/70 00:00 | |
Before PCs | 01/01/70 00:00 | |
fair? | 01/01/70 00:00 | |
Sure its fair | 01/01/70 00:00 | |
Show me the apps | 01/01/70 00:00 | |
Save your appetite | 01/01/70 00:00 | |
8051 task switch | 01/01/70 00:00 | |
Modern derivatives have 4 priority level | 01/01/70 00:00 | |
Four banks and context switch | 01/01/70 00:00 | |
anyway | 01/01/70 00:00 | |
Lemme see..... | 01/01/70 00:00 | |
So in fact | 01/01/70 00:00 | |
What is Real Time | 01/01/70 00:00 | |
real time | 01/01/70 00:00 | |
Confused | 01/01/70 00:00 | |
answers | 01/01/70 00:00 | |
RE: Answers | 01/01/70 00:00 | |
extern - intern | 01/01/70 00:00 | |
Agreed | 01/01/70 00:00 | |
Why not | 01/01/70 00:00 | |
Give up | 01/01/70 00:00 | |
Deifinition of a Poor Engineer | 01/01/70 00:00 | |
so do I | 01/01/70 00:00 | |
8051 RTOS Contract | 01/01/70 00:00 | |
a real speed demon | 01/01/70 00:00 | |
RTOS/Multitasking discussed so many time | 01/01/70 00:00 | |
Yes![]() | 01/01/70 00:00 |