lkml.org 
[lkml]   [2003]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectA proper way to yield for interactive tasks
    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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.029 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site