The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 3 01-04-2008 02:26 PM
How to get system memory usage like top umen UNIX for Dummies Questions & Answers 3 02-13-2007 01:16 AM
Help -fwrite consuming lot of memory !!! ajphaj High Level Programming 2 07-19-2005 01:08 PM
Check if deamons are running W2W UNIX for Dummies Questions & Answers 3 05-02-2002 12:07 PM
Unix system memory anilkumar UNIX for Dummies Questions & Answers 1 01-16-2001 10:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2008
Registered User
 

Join Date: Aug 2007
Location: chennai
Posts: 19
Question How system deamons consuming less memory

Dear all,
When I write the daemon programs it is consuming high memory and processor time. How can I avoid this?
But, the system daemons are not consuming more. How?
Can any one explain how the system daemons are handling the memory consumption and processor time.

Thanks,
Nagalenoj
Reply With Quote
Forum Sponsor
  #2  
Old 06-07-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Do you call sleep or usleep to shut down until a signal is received or the timeout of sleep is reached?

You can also use select or maybe poll for socket operations. daemons are "asleep" a large part of the time - sounds like yours is not.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0