c programming

This is a discussion on c programming within the C Programming forums, part of the General Programming Boards category; hello.. the scenario of my problem: Actually i need 2 generate a c program to find out how many processors ...

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    c programming

    hello..

    the scenario of my problem:

    Actually i need 2 generate a c program to find out how many processors are running at the n machines by devoloping a client server model using a unix enviroment!!


    Any help is appreciated!!
    thanks..
    Last edited by sumanpc; 02-20-2010 at 12:08 AM.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Code:
    /* put stuff here */
    int main( void )
    {
        /* put stuff here too */
        return 0;
    }
    
    /* optionally, put stuff here as well */
    That'll get you started.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    66
    Hope this is a small part of your requirement , I guess you are working in the unix environment
    so that I suggest you to go through the /proc/cpuinfo file , which contains all the details of the
    processors.

    you can open that file in your code and do your stuffs .

    All the best !

Popular pages Recent additions subscribe to a feed

Tags for this Thread


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