Messages in this thread | | | Date | Wed, 24 Sep 2003 18:09:48 +0200 (CEST) | From | emmanuel ALLAUD <> | Subject | A 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/
| |