示例#1
0
 def get_process_threads(self):
     """Return the number of threads belonging to the process."""
     rawlist = _psutil_bsd.get_process_threads(self.pid)
     retlist = []
     for thread_id, utime, stime in rawlist:
         ntuple = nt_thread(thread_id, utime, stime)
         retlist.append(ntuple)
     return retlist
示例#2
0
 def get_process_threads(self):
     """Return the number of threads belonging to the process."""
     rawlist = _psutil_bsd.get_process_threads(self.pid)
     retlist = []
     for thread_id, utime, stime in rawlist:
         ntuple = nt_thread(thread_id, utime, stime)
         retlist.append(ntuple)
     return retlist