LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-01-2006, 12:05 AM   #1
gaihua
LQ Newbie
 
Registered: Apr 2006
Posts: 18

Rep: Reputation: 0
realtime programming


I did install Fedora 5 distribution my my computer. I did try to do some realtime programing now. However, I can't pass the compiler because the glibc doesn't support all realtime commands. I can't pass it because gcc don't know the shm_open() and sem_wait(), etc. Anybody know how to make them work??
 
Old 10-02-2006, 11:35 AM   #2
Denes
Member
 
Registered: Mar 2004
Distribution: CentOS 4.3/4.5
Posts: 72

Rep: Reputation: 15
Are you talking about using shared memory and a cross process semaphore in Linux? If so check out the book Advanced Linux Programming (you can find it for free on the web), Chapter 5 - Interprocess communication. Section 5.1 discusses using shared memory, section 5.2 discusses interprocess semaphores.

I hope you know that FC5 is not a real time distribution and does not have real time extensions built in, but depending on your real time requirements it may work for you.
 
Old 10-05-2006, 07:40 AM   #3
gaihua
LQ Newbie
 
Registered: Apr 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you, Denes. I can use gcc -lrt programm.c to pass the complier. Could we install some library or complier under the FC5 to make it work for realtime programming?
 
Old 10-05-2006, 10:53 AM   #4
Denes
Member
 
Registered: Mar 2004
Distribution: CentOS 4.3/4.5
Posts: 72

Rep: Reputation: 15
There is a library out there called RTAI which has promise but I have never personally used it, although I know someone who has and they had a rough time with certain hardware incompabilities. I believe there are others.

There is a Linux distribution devoted specifically to real time called RedHawk, but it is not free.

There is also another one called LynxOS (also not free) that has a POSIX layer for application compatibility. I have used this OS and it works but only supports limited hardware since it's device drivers are not Linux compatible.

Anyway, as I said before, Linux will generally give you good, but not guaranteed performance. And again it all depends on your real time requirements.
 
Old 08-09-2007, 10:29 AM   #5
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Rep: Reputation: 0
Quote:
Originally Posted by Denes
If so check out the book Advanced Linux Programming (you can find it for free on the web), Chapter 5 - Interprocess communication. Section 5.1 discusses using shared memory,
This only talks about Sys V shared memory - how about a pointer for Posix shared memory?
 
Old 08-11-2007, 02:59 AM   #6
asprakash
Member
 
Registered: May 2006
Location: Chennai, India
Posts: 74
Blog Entries: 3

Rep: Reputation: 18
RTLinux and RTAI provides you the real time linux capabilities. But you need to compile a separate kernel and patch the rtlinux.
frankly tel you its a little bit tough job for beginners, initially.
Did you tried, -lrt option?
You should have to install glibc-2.2 or later version for supporting this real time libraries.
 
  


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
filesystem in realtime sync bfay Linux - Software 10 02-17-2012 02:37 PM
realtime programming (c) os2 Programming 2 03-02-2005 03:13 PM
xmms - realtime curmudgeon42 Linux - Software 1 01-29-2005 11:58 AM
Realtime record spotslayer Linux - Software 0 10-16-2004 09:45 AM
realtime-lsm denzo74 Mandriva 0 08-11-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:04 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