LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-26-2005, 07:38 AM   #1
mendiratta
LQ Newbie
 
Registered: Jul 2004
Location: bangalore
Distribution: linux 9.0
Posts: 28

Rep: Reputation: 15
real time programming on Linux-2.4 " URGENT"


I am writing a real time program to read data from a custom hardware and write the data and simultaneously provide display by reading the data from disk.
My read and write process are synchronised and are running with SCHED_FIFO scheduling with highest priority of 99 and 98 and my display is runnning with priority 95 under SCHED_FIFO scheduling only.

So now the display process is not in any critical section. My read should cater to the device with in 23.2 millisecs and it is not Interrupt driven but SCSI device.

Some time i see it does not cater to the read even though it is the highest priority proc. WHY?

2) Observation what i have seen is i am using 1GB memory and my system is having 2.0 GB Main memory.,but when some processes get scheduled before my process,they increase the cache in the system ,so when i get scheduled ,the processor puts others into swap and some times does paging when my real time process is running,which is very serious when real time programming is going on ,how to clear the cache and avoid the processor doing any paging when my process is running.
 
Old 05-26-2005, 08:20 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
First of all, be considerate to all those other members who ask questions on this site and not title your thread as "urgent". There is no priority given here to any question asked as others come here in their own free time to help people like you.
Secondly, this has been moved to our Programming forum where is more suited to be asked and answered.
 
  


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
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
System hanging at "Real Time Clock Driver" raccoon Linux - General 3 07-15-2004 02:57 PM
"Real time" Apache log filtering with Perl skelly Programming 1 07-01-2004 02:24 PM
"Real-time" Apache Log Filtering skelly Linux - Software 1 06-30-2004 02:16 PM
System freezing at "Real Time Clock Driver" raccoon Linux - Newbie 0 12-02-2003 02:51 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:25 PM.

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