DragonFly BSD
DragonFly commits List (threaded) for 2004-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern kern_proc.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 May 2004 19:47:50 -0700 (PDT)

dillon      2004/05/28 19:47:50 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_proc.c 
  Log:
  Make sysctl_kern_proc() iterate through available cpus to retrieve the
  list of threads installed on each one rather then just retrieve the threads
  on the cpu it happens to have been called from.
  
  To accomplish this, sysctl_kern_proc() now uses the new LWKT API to
  migrate itself to each target cpu in order to safely access the thread
  list on that cpu, ending up on the same cpu it started from.  The overhead
  is nasty to be sure, but who cares when only 'top' and 'ps' and related
  non-critical utilities use the feature?
  
  Revision  Changes    Path
  1.14      +23 -1     src/sys/kern/kern_proc.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_proc.c.diff?r1=1.13&r2=1.14&f=h



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]