Re: sleep for specified time
From: Joshua Oreman (oremanj_at_webserver.get-linux.org)
Date: 05/31/03
- Previous message: Daniela: "Complicated routing/SSH-FTP tunneling problem"
- In reply to: Lowell Gilbert: "Re: sleep for specified time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 30 May 2003 15:38:47 -0700 To: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
On Fri, May 30, 2003 at 09:04:50AM -0400 or thereabouts, Lowell Gilbert seemed to write:
> > > someone please tell me how to make a kld sleep for specified number of
> > > microseconds
> > >
> > > its urgent.
> >
> > nanosleep (microseconds*1000);
>
> In the kernel? Surely not.
>
> I think you'd need to explicitly run the scheduler, and probably use a
> timer event to resume later. There are established techniques for
> these things, but the BSD kernel details aren't my specialty...
Sorry, I really am not familliar with the kernel. I just figured, nanosleep
is a syscall, so it should work in kernel...
Sorry again,
-- Josh
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Daniela: "Complicated routing/SSH-FTP tunneling problem"
- In reply to: Lowell Gilbert: "Re: sleep for specified time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|