From: "emmanuel ALLAUD" <eallaud@yahoo.fr>
To: linux-kernel@vger.kernel.org
Subject: A proper way to yield for interactive tasks
Date: Wed, 24 Sep 2003 18:09:48 +0200 (CEST) [thread overview]
Message-ID: <20030924160948.31778.qmail@web12606.mail.yahoo.com> (raw)
Hi all,
this way was brought on the XFree-devel list : say you
have a video driver which wants to feed a video card
using DMA (in general using big chunks ~1MB for
performance reasons). Once the buffer is filled up,
you know this will take time to be processed by the
card, so you want to release the CPU, but you don't
want to wait too long for getting the CPU back for
interactivity reason. People are using sched_yield for
now (not all I guess), is that the good solution?
I must add that this is all in user-space, and the DMA
case is not the only case where we need to yield but
not too long.
I have seen things related in the archives but I did
not find something clear on that matter.
TIA
Bye
Manu
PS : could you please CC me, I am not subscribed to
this list (and my mailbox is already crowded ;-)
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
next reply other threads:[~2003-09-24 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-24 16:09 emmanuel ALLAUD [this message]
2003-09-24 16:20 ` ACPI: Unexpected IO-APIC Joao Seabra
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=20030924160948.31778.qmail@web12606.mail.yahoo.com \
--to=eallaud@yahoo.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®