yield() in kernel CAN'T yield control for MOD_LOAD thread

yangshazhou_at_hotmail.com
Date: 08/25/04

  • Next message: gerarra_at_tin.it: "RE: Problems with tiocget/seta"
    To: <freebsd-hackers@freebsd.org>
    Date: Wed, 25 Aug 2004 15:06:51 +0800
    
    

    Hi all,
        This problem delay me for quite a long time.
        I've built two klds, I'd like to see the result one's running to the
    other's. In one kld's MOD_LOAD subroutine, I make a long 'for' loop, in
    which it DELAY(1000) and then call yield(curthread,NULL). When the module
    was loaded by kldload, the system failed to response until the loop quit.
    The loop seems like that:
     for(i=0;i<8000;i++){
        ......
      DELAY(1000);
      yield(curthread,NULL);
     }

        My system is 5.2.1-release. Thanks.
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: gerarra_at_tin.it: "RE: Problems with tiocget/seta"

    Relevant Pages

    • Re: yield() in kernel CANT yield control for MOD_LOAD thread
      ... > This problem delay me for quite a long time. ... > I've built two klds, I'd like to see the result one's running to the ... the system failed to response until the loop quit. ...
      (freebsd-hackers)
    • Capital Beltway in a dozen years
      ... changes have there been to the I-495 Beltway? ... IL=Inner Loop, OL=Outer LOOP ... -- Added pedestrian/bicycle bridge near Old Georgetown Rd., ... Elaborate pedestrian walkway built. ...
      (misc.transport.road)
    • Re: TV aerial
      ... > If you just want terrestrial stuff get an "Active Magic Circle". ... > aerial with built in amp and will set you back no more than £20. ...
      (uk.rec.motorcaravans)
    • Re: Editorial against the tolling of the Triangle Expressway froma socio-economic viewpoint
      ... user fee based system for the facility involved. ... I suppose some toll roads were promoted that way. ... newspapers for a number of toll facilities when built and nothing was ... The northern half of the Outer Loop was built ...
      (misc.transport.road)
    • Re: How to use the DAQ Assistant?
      ... you will observe how a DAQ assistant vi was built by using normal DAQmx functions for the parameters you had set ... It must be placed in a loop while sometimes the error take place. ... Only if your number of samples to read is greater than sampling rate, you will have to use a while loop to get all those samples. ...
      (comp.lang.labview)