Qiaosheng's profile没有的空间PhotosBlogLists Tools Help

Blog


    September 27

    /proc/pid/stat

    typedef struct statstruct_proc {
      int pid; /** The process id. **/
      char exName [_POSIX_PATH_MAX]; /** The filename of the executable **/
      char state; /** 1 **/ /** R is running, S is sleeping,
                               D is sleeping in an uninterruptible wait,
                               Z is zombie, T is traced or stopped **/
      unsigned euid, /** effective user id **/
                    egid; /** effective group id */
      int ppid; /** The pid of the parent. **/
      int pgrp; /** The pgrp of the process. **/
      int session; /** The session id of the process. **/
      int tty; /** The tty the process uses **/
      int tpgid; /** (too long) **/
      unsigned int flags; /** The flags of the process. **/
      unsigned int minflt; /** The number of minor faults **/
      unsigned int cminflt; /** The number of minor faults with childs **/
      unsigned int majflt; /** The number of major faults **/
      unsigned int cmajflt; /** The number of major faults with childs **/
      int utime; /** user mode jiffies **/
      int stime; /** kernel mode jiffies **/
      int cutime; /** user mode jiffies with childs **/
      int cstime; /** kernel mode jiffies with childs **/
      int counter; /** process's next timeslice **/
      int priority; /** the standard nice value, plus fifteen **/
      unsigned int timeout; /** The time in jiffies of the next timeout **/
      unsigned int itrealvalue; /** The time before the next SIGALRM is sent to the process **/
      int starttime; /** 20 **/ /** Time the process started after system boot **/
      unsigned int vsize; /** Virtual memory size **/
      unsigned int rss; /** Resident Set Size **/
      unsigned int rlim; /** Current limit in bytes on the rss **/
      unsigned int startcode; /** The address above which program text can run **/
      unsigned int endcode; /** The address below which program text can run **/
      unsigned int startstack; /** The address of the start of the stack **/
      unsigned int kstkesp; /** The current value of ESP **/
      unsigned int kstkeip; /** The current value of EIP **/
      int signal; /** The bitmap of pending signals **/
      int blocked; /** 30 **/ /** The bitmap of blocked signals **/
      int sigignore; /** The bitmap of ignored signals **/
      int sigcatch; /** The bitmap of catched signals **/
      unsigned int wchan; /** 33 **/ /** (too long) **/
      int sched, /** scheduler **/
                    sched_priority; /** scheduler priority **/
                    
    } procinfo;

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://devoteinjava.spaces.live.com/blog/cns!908208BAA1B1702!172.trak
    Weblogs that reference this entry
    • None