Thread: How to approach this ...

  1. #1
    Registered User
    Join Date
    Sep 2003

    How to approach this ...

    The Problem is:
    My application monitors the cpu usage of local machine and whenever cpu usage goes below 10%, it will send the ip address to an already designated pc, lets say a server, and that server will send some file to the 1st machine.

    Now plz guide me how should i approach this problem?
    What should i know to code such application?
    Specially, how to monitor CPU usage?
    I am using the Windows platform!

    Thanx in advance!

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    >I am using the Windows platform!
    Restoring a minimized window takes up more than 10% of the CPU on a Windows machine. So basically you want your client program to retrieve files from a server program while the machine is idling?
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Its the same concept as screen saver. my application should be activated when the machine is idle!

  4. #4
    Registered User
    Join Date
    Aug 2004
    San Diego, CA
    Why not just /write/ a screen saver, and whenever it kicks in, make good use of the send() and recv() functions to transmit binary data between the two machines?

    Edit: I'm not fuzzy-warm on the details. Something like Folding@home is what I mean.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unsure on how to approach this concurrency problem
    By osiris^ in forum C# Programming
    Replies: 3
    Last Post: 04-29-2008, 11:47 PM
  2. Best approach
    By DV64h in forum Networking/Device Communication
    Replies: 6
    Last Post: 12-10-2006, 03:24 PM
  3. Object oriented approach in C.
    By arunj in forum C Programming
    Replies: 3
    Last Post: 04-19-2006, 02:22 AM
  4. right approach!
    By tarun in forum C Programming
    Replies: 14
    Last Post: 08-19-2002, 08:00 PM
  5. software development approach...
    By dkt in forum A Brief History of
    Replies: 6
    Last Post: 10-16-2001, 09:15 PM