yield() in kernel CAN'T yield control for MOD_LOAD thread
yangshazhou_at_hotmail.com
Date: 08/25/04
- Previous message: mark manning: "Problems with tiocget/seta"
- Next in thread: John Baldwin: "Re: yield() in kernel CAN'T yield control for MOD_LOAD thread"
- Reply: John Baldwin: "Re: yield() in kernel CAN'T yield control for MOD_LOAD thread"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"
- Previous message: mark manning: "Problems with tiocget/seta"
- Next in thread: John Baldwin: "Re: yield() in kernel CAN'T yield control for MOD_LOAD thread"
- Reply: John Baldwin: "Re: yield() in kernel CAN'T yield control for MOD_LOAD thread"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|