A proper way to yield for interactive tasks

From: emmanuel ALLAUD (eallaud_at_yahoo.fr)
Date: 09/24/03

  • Next message: Stephen Smalley: "[RFC][PATCH] Pass nameidata to security_inode_permission hook"
    Date:	Wed, 24 Sep 2003 18:09:48 +0200 (CEST)
    To: linux-kernel@vger.kernel.org
    
    

        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/


  • Next message: Stephen Smalley: "[RFC][PATCH] Pass nameidata to security_inode_permission hook"

    Relevant Pages

    • Re: pictures not showing up in word
      ... You may need a new video driver or an upgrade to the video card. ... To troubleshoot, go to the Windows Control Panel and choose Display> ... If at any point in the procedure the problem stops, ...
      (microsoft.public.word.docmanagement)
    • Re: Hardware Manager, Video Adapter, Yellow Exclamation mark is cast in stone.
      ... Everything seemed to work fine, so I finally went on with life, until the video adapter failed, and I put in a cheap nVidia video card. ... Hardware Manager correctly identified the card and all worked well, but the exclamation mark still there. ... Please install video driver provided by the hardware manufacturer. ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: Video Screwup, Losing 2/3 of screen
      ... i can move the apps around fine but can't select the shutdown X til i get the panel in the center of the screen. ... ok replaced the video card ... install your video driver again. ...
      (comp.os.os2.setup.misc)
    • Re: Help, No pictures in Pub 2003
      ... No cause my video card is brand new and all up to date ... > Could this be a video driver issue? ... >> file from someone else the pictures have vanished again. ...
      (microsoft.public.publisher)
    • Re: Dvd Firmware update problem
      ... This included turning off DMA in the ... >It will not let me change the graphic settings or use my ... >Tried installing the firmware again. ... The error you received has to do with your video card not the DVD ...
      (microsoft.public.windowsxp.general)