home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / OS2RUN.ZIP / RUNNING.DOC next >
Text File  |  1989-10-22  |  4KB  |  76 lines

  1. RUNNING: Shows Processes Running in OS/2
  2. ----------------------------------------
  3.  
  4. This program is released to the public domain and may be distributed
  5. freely by any means.
  6.  
  7. RUNNING is a simple program which provides a listing of all processes
  8. currently being used by OS/2.  It provides information about the
  9. processes such as their PID, their PARENT PID, the internal module ID
  10. #, the number of children processes, the number of threads currently
  11. running in each process, and dependency links to resources. 
  12. Resources are DLL's or font files.
  13.  
  14. Here is a sample of a listing of processes (not resources):
  15.  
  16. PID   PPID  Mod#  Process Name          Thds  Chld  Resource Module #s
  17. ----  ----  ----  --------------------  ----  ----  -------------------------
  18. 000e  0005  0332  CLOCK2                  1     0   0084 0151 0152 0156 
  19. 0011  0005  028b  CMD                     1     1   0072 0084 007b 008f 0085 
  20.                                                     0046 007c 
  21. 000c  0005  0380  FREEMEM                 1     0   0084 0151 0152 
  22. 0006  0005  01f4  HARDERR                 3     0   0084 007b 0058 008f 0085 
  23.                                                     0072 007c 
  24. 000a  0005  0273  PMEXEC                  1     0   0156 0084 0151 0152 0155 
  25.                                                     0159 
  26. 0005  0000  016a  PMSHELL                12     8   0151 0152 0155 0156 0159 
  27.                                                     0084 
  28.  
  29.  
  30. The PID is the process ID which might be used by a program such as
  31. KILL (Copyright (c) 1988, Ed Braaten and available on many BBSs) to
  32. totally remove a process from the system.  The PPID is the parent
  33. process' PID and the module # is a number used internally to identify
  34. the process.  The process name is the NAME or LIBRARY name from the
  35. DEF file when the process is linked.  The number of threads and
  36. number of children are followed by the module numbers of all of the
  37. resources currently in use by the process.  Here is a sample of the
  38. resource listing:
  39.  
  40. PID   PPID  Mod#  Process Name          Thds  Chld  Resource Module #s
  41. ----  ----  ----  --------------------  ----  ----  -------------------------
  42. *Resource*  02a0  COURIER                           
  43. *Resource*  0114  DISPLAY                           007c 0084 0085 0151 013b 
  44. *Resource*  0084  DOSCALL1                          0000 007b 0085 007c 
  45. *Resource*  00c0  DOSCALLS                          
  46. *Resource*  02b6  HELV                              
  47. *Resource*  0406  IBMNULL                           013b 0084 0151 0156 02e0 
  48. *Resource*  007b  KBDCALLS                          0084 
  49. *Resource*  0178  MONCALLS                          0084 
  50. *Resource*  0058  MOUCALLS                          0084 007c 
  51. *Resource*  0152  PMGPI                             0084 0085 013b 012b 0151 
  52. *Resource*  0156  PMSHAPI                           0084 0085 0155 0151 
  53. *Resource*  0151  PMWIN                             0114 0084 0085 0152 013b 
  54.                                                     0155 0156 
  55.  
  56. We can see that CLOCK2 above uses DOSCALL1, PMWIN, PMGPI, and PMSHAPI as
  57. its resources.
  58.  
  59. This program uses the undocumented function DosQProcStatus() which is
  60. used by the programs PSTAT.EXE and PS.EXE which are provided with
  61. OS/2.  This function was brought to my attention by Franz Krainer in
  62. a message in the OS2 echo (10-19-89), and helped fulfil a need that I
  63. have had for a long time (since I moved over to OS/2 from QNX) to
  64. know what exactly is running in my system at any moment.  The
  65. function works with OS/2 1.1 and should also work with version 1.2.
  66.  
  67. If you have questions or comments, you can send them to me Netmail at
  68. my BBS, The Programmer's Oasis (1:151/402).  You can also call the
  69. BBS at (919) 226-6984 (North Carolina).  Finally, you can Email me
  70. through Compuserve (ID 76120,110).
  71.  
  72.  
  73.  
  74.  
  75.  
  76.