How to approach this ...

This is a discussion on How to approach this ... within the C++ Programming forums, part of the General Programming Boards category; The Problem is: My application monitors the cpu usage of local machine and whenever cpu usage goes below 10%, it ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    38

    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
    Posts
    9,796
    >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
    Posts
    38
    yes!
    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
    Location
    San Diego, CA
    Posts
    313
    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, 02: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 Cprogramming.com
    Replies: 6
    Last Post: 10-16-2001, 09:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21