Find the answer to your Linux question:
Results 1 to 3 of 3
hai, can anybody help in finding the unique CPU ID through socket programing...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    9

    How to get CPU ID?


    hai,
    can anybody help in finding the unique CPU ID through socket programing

  2. #2
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401
    See in mplayer-try7 sources (probably present in CVS or the last try8 release):
    the file is cpudetect.c.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

  3. #3
    Linux User
    Join Date
    Jun 2006
    Posts
    311
    Hi dicorr,
    If it is an Intel CPU, then you can use the assembler command CPUID.

    In UNIX machines, there is a function gethostid() which returns a unique 32-bit identifier for that machine.

    I do not think that answered your question. But going through the source of mplayer is a better idea.

    With Regards,
    Thinker

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •