LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-04-2012, 02:53 PM   #1
elico
Member
 
Registered: Dec 2011
Posts: 145

Rep: Reputation: Disabled
LINUX hard real time or bare C ?


Hi

What is "hard real time" LINUX based code
or C based code on a bare board ?

When very fast respnse is needed I guess a c
based code on a bare board comes first, rather then
LINUX based code .

Am I right

Thanks
Elico
 
Old 10-04-2012, 07:29 PM   #2
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
What RTOS you should use depends strongly on the application. If you have a specific application in mind, what is it?

If this doesn't answer your question, then please restate it. I'm having trouble understanding what you're asking.
 
Old 10-05-2012, 03:59 AM   #3
elico
Member
 
Registered: Dec 2011
Posts: 145

Original Poster
Rep: Reputation: Disabled
My question is general about real time embedded coding .

When response time is critical and should be short like in case of
an industrial machine that needs to respond fast .

In such case is it better to control that machine with a bare board
programmed with C code or is it better to use a LINUX based board ?

The term HARD REAl TIME means fast response time
vs SOFT REAL TILE means long response tle LIKE an ATM machine .

Thanks
Elico
 
Old 10-05-2012, 09:24 AM   #4
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
Quote:
Originally Posted by elico View Post
My question is general about real time embedded coding .

When response time is critical and should be short like in case of
an industrial machine that needs to respond fast .

In such case is it better to control that machine with a bare board
programmed with C code or is it better to use a LINUX based board ?
Depends on the exact application. In many industrial settings, running bare-bones may be better. Additionally, if it's a life-critical safety application, Linux is pretty much out of the question. However, Linux does provide a lot in terms of drivers and software libraries that may be useful for an embedded application.

Quote:
The term HARD REAl TIME means fast response time
vs SOFT REAL TILE means long response tle LIKE an ATM machine .
The definitions I've heard are a bit different:
Hard real-time: The system has defined deadlines; missing a single deadline is considered complete system failure.
Soft real-time: Missing the occasional deadline is acceptable.
 
1 members found this post helpful.
Old 10-05-2012, 01:26 PM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I think the OP is trying to distinguish between Linux as a realtime OS and bare-metal C programming. Neither of these are 'hard realtime', although you may achieve hard realtime performance with bare-metal C coding.
Strictly speaking, hard realtime is about guaranteed response time, and does not mean fast/high-speed. Normally, when guaranteed response times are required (not 'should be short'), it also implies some elevated performance level, and that is probably what causes people to misunderstand the meaning. Determinism is the name of the game for real-time performance. Only if you can guarantee response times can you call a system a realtime system. Bare Linux can not do this. Very often, it is true that 'real fast is as good as real time', but there is still a distinction.
--- rod
 
1 members found this post helpful.
Old 10-07-2012, 04:09 AM   #6
elico
Member
 
Registered: Dec 2011
Posts: 145

Original Poster
Rep: Reputation: Disabled
Many thanks for you all .
Very informative answers .

Elico
 
Old 10-07-2012, 09:11 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

@elico

You seem to be generally splattering the forum with related content. I suggest that you try to stay with one thread instead of open a new thread that is related to the same topic you have been posting queries about.

That way we can address the topic in it's entirety. Questions are fine but when you segment, it can not be addressed fully as to the related content.

Please look at the following;
Quote:
FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.
&
FYI: Netiquette is a set of social conventions that facilitate interaction over networks, ranging from Usenet and mailing lists to blogs and forums.
 
1 members found this post helpful.
Old 10-09-2012, 01:44 AM   #8
elico
Member
 
Registered: Dec 2011
Posts: 145

Original Poster
Rep: Reputation: Disabled
Thanks
i will try .

Elico
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some detail information on Hard Real-Time Systems and Soft real-Time Systems. LinuxInfo General 3 09-22-2008 03:25 AM
LXer: Real-time Linux gains real-time JVM LXer Syndicated Linux News 0 10-12-2006 10:54 AM
Hard/Soft Real Time Scheduler for Linux 2.4 amit_bst Linux - General 1 05-25-2006 06:44 AM
Hard/Soft Real Time Scheduler for Linux 2.4 amit_bst Linux - General 3 05-25-2006 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration