LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2004, 05:02 AM   #1
vedion
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
Question How do sleep under 20 ms in Linux?


The Linux function usleep, cannot sleep under 20 ms. My program needs to sleep arounds 200 microsec. How do I work around this?

FAQ: RedHat 9
 
Old 04-23-2004, 06:03 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,236

Rep: Reputation: 58
this handles fractional seconds ok. you might try it.


http://onegeek.org/~tom/software/delay/


sorry i misread your question.

Last edited by whansard; 04-23-2004 at 06:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching for Server (BOOTP/DHCP) <sleep> <sleep> .. .. Eileen Linux - Networking 12 10-21-2005 01:14 AM
Linux Sleep Mode? RynoFly Linux - Newbie 1 01-17-2005 01:21 AM
linux sleep() bobbens Programming 5 01-15-2005 12:48 PM
Linux Won't Recover after Sleep lramos85 Linux - Laptop and Netbook 0 05-15-2004 12:23 AM
Linux C : A better way to sleep/timer? jimmy416 Programming 8 10-14-2003 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration