All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Davis <paul@linuxaudiosystems.com>
To: "Harish K Harshan" <harish@amritapuri.amrita.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Real-Time thread scheduling in linux??
Date: Wed, 14 Jul 2004 09:34:34 -0400	[thread overview]
Message-ID: <200407141334.i6EDYYLA009782@localhost.localdomain> (raw)
In-Reply-To: Your message of "Wed, 14 Jul 2004 18:01:05 +0530." <60580.203.197.150.195.1089808265.squirrel@203.197.150.195>

>     I would like to know if there is any way to give a thread real-time
>priority under Linux, and also if it is possible using the pthread
>library. How would the kernel handle such threads? And do we need to
>implement locking systems, so that this thread does not block other
>threads permanently? Please help me, because I am working on a data
>acquisition application, and the acquisition thread needs almost
>real-time priority, and loss of data is not affordable.

wrong mailing list, sort of.

use google to look up SCHED_FIFO, which will lead you into the
wonderful of soft-RT programming on POSIX operating systems. 

lots of people (including me) do this sort of thing already. but be
warned: linux is not a hard-RT OS, and cannot become so. if you are
doing data acquisition for critical data or systems, you might want to
consider RT-Linux or RTAI or other hard-RT variants.

--p


  reply	other threads:[~2004-07-14 13:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-14 12:31 Real-Time thread scheduling in linux?? Harish K Harshan
2004-07-14 13:34 ` Paul Davis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-14 20:56 Perez-Gonzalez, Inaky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200407141334.i6EDYYLA009782@localhost.localdomain \
    --to=paul@linuxaudiosystems.com \
    --cc=harish@amritapuri.amrita.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.