`

用dos 命令查看进程中的线程

阅读更多

pslist是用命令行查看线程;ProcessExplorer是图形化的查看线程,都在附件中。

1.查看进程

     tasklist 

or  pslist -t

 

Name                             Pid Pri Thd  Hnd      VM      WS    Priv
Idle                               0   0   2    0       0      28       0
  System                           4   8  69 1222    1824     308       0
    smss                         832  11   3   20    3748     408     172
      csrss                      900  13  12  807   72428   16152    2568
      winlogon                   924  13  21  516   61272    4704    8536
        services                 968   9  15  280   22556    4516    1868
          avp                    256   8  36 7185  190528   22332   50308
explorer                        2060   8  16  575  122880   13400   17752
  msnmsgr                       1604   8  33  778  222560   19240   32792
  cmd                           3680   8   1   31   31084    3004    2164
    pslist                      5476  13   2   91   30500    2744    1236
  notepad                       4276   8   1   45   33692    3956    1344
  IEXPLORE                      5184   8  61 2143  403392   31236  105436
  eclipse                       6088   8   1   33   29884    3184     960
    javaw                       4484   8  40 1197  729124  139424  193496
      javaw                     4252   8  11(十一个线程)  310  187820    8080   13908

 

 

2.查看进程中的线程 http://technet.microsoft.com/en-us/sysinternals/bb896682.aspx

 

pslist -dmx 4252

Name                Pid      VM      WS    Priv Priv Pk   Faults   NonP Page
javaw              4252  202224   21848   23968   24476     7927      4   47
 Tid Pri    Cswtch            State     User Time   Kernel Time   Elapsed Time
5428   8      2617     Wait:UserReq  0:00:01.312   0:00:00.515    0:06:41.625
5312  15       614     Wait:UserReq  0:00:00.078   0:00:00.000    0:06:41.484
1380  15         7     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:41.468
2012  10         7     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:41.468
3876   9      1037     Wait:UserReq  0:00:00.046   0:00:00.187    0:06:41.187
5884   9        65     Wait:UserReq  0:00:00.000   0:00:00.015    0:06:41.187
4444  10       236     Wait:UserReq  0:00:00.000   0:00:00.015    0:06:41.171
4564  15        12     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:40.953
4644  15       270     Wait:UserReq  0:00:00.234   0:00:00.015    0:06:40.953
4292   8         5     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:40.953
5964  15      6422   Wait:DelayExec  0:00:00.000   0:00:00.000    0:06:40.937

 

 

Introduction

pslist exp would show statistics for all the processes that start with "exp", which would include Explorer.
-d Show thread detail.
-m Show memory detail.
-x Show processes, memory information and threads.
-t Show process tree.
-s [n] Run in task-manager mode, for optional seconds specified. Press Escape to abort.
-r n Task-manager mode refresh rate in seconds (default is 1).
\\computer Instead of showing process information for the local system, PsList will show information for the NT/Win2K system specified. Include the -u switch with a username and password to login to the remote system if your security credentials do not permit you to obtain performance counter information from the remote system.
-u username If you want to kill a process on a remote system and the account you are executing in does not have administrative privileges on the remote system then you must login as an administrator using this command-line option. If you do not include the password with the -p option then PsList will prompt you for the password without echoing your input to the display.
-p password This option lets you specify the login password on the command line so that you can use PsList from batch files. If you specify an account name and omit the -p option PsList prompts you interactively for a password.
name Show information about processes that begin with the name specified.
-e Exact match the process name.
pid Instead of listing all the running processes in the system, this parameter narrows PsList's scan to tthe process that has the specified PID. Thus:
pslist 53
would dump statistics for the process with the PID 53.

 

How it Works

Like Windows NT/2K's built-in PerfMon monitoring tool, PsList uses the Windows NT/2K performance counters to obtain the information it displays. You can find documentation for Windows NT/2K performance counters, including the source code to Windows NT's built-in performance monitor, PerfMon, in MSDN.

 

Memory Abbreviation Key

All memory values are displayed in KB.

  • Pri: Priority
  • Thd: Number of Threads
  • Hnd: Number of Handles
  • VM: Virtual Memory
  • WS: Working Set
  • Priv: Private Virtual Memory
  • Priv Pk: Private Virtual Memory Peak
  • Faults: Page Faults
  • NonP: Non-Paged Pool
  • Page: Paged Pool
  • Cswtch: Context Switches

 

 

以下是非Windows系统本身附带的外部命令,均存放于光盘 PE 系统目录下的 System32 目录下。 

AUTORAMRESIZER.EXE 自动根据物理内存调整虚拟盘大小(PE)。 
CHOICE.EXE DOS 选择命令支持扩展 
DEVCON.EXE 设备控制台命令行工具 
FINDPASS.EXE 查找系统管理员口令的命令行工具(可能有病毒虚警) 
FPORT.EXE TCP/IP与端口检测工具 
HWPnp.exe 重新检测即插即用硬件的实用工具,可激活移动存储器等 
KEYBOARD.EXE 更改键盘区域属性的命令行工具 
KEYDOWN.EXE 检测键盘按键的命令行工具 
NC.EXE 大名鼎鼎的网络强力命令行工具! 
NETCFG.EXE Windows PE 环境的网络配置命令行工具 
PASSWDRENEW.EXE Windows 口令离线修改工具 
PENETCFG.EXE 牛人编写的 PE 网络环境配置工具 
PSINFO.EXE 本地和远程系统信息检测命令行工具 
PSKILL.EXE 结束本地或远程进程的命令行工具 
PSLIST.EXE 系统进程查看工具 
PSPASSWD.EXE 更改本地或远程系统口令命令行工具 
PSSERVICE.EXE 管理系统服务的命令行工具 
PULIST.EXE 系统进程列表查看 
TCPVCON.EXE 查看活动进程的TCP连接状态 
TFTPD32.EXE 简单的 TFTP 工具 
WGET.EXE 功能强大的命令行下载工具 
XCACLS.EXE 文件及目录访问控制列表的命令行加强工具 
XNVIEW.EXE 袖珍图像查看工具(小巧够用,不需升级)

 

 

 

分享到:
评论
4 楼 China2010pan 2012-06-15  
  谢楼主了
3 楼 wangboyi888 2011-07-06  
  
2 楼 opleo 2010-10-12  
pslist 在xp下不行
1 楼 opleo 2010-10-12  
windows\xp下的对应的命令呢,

相关推荐

    查看windows进程线程工具

    这时PSTools工具,解压后将pslist.exe复制到C:\Windows\System32目录下,dos窗口输入pslist,弹出一个提示窗口提示同意并安装,安装后立马会例举出所有...如果要查找某个进程的线程,只需执行命令:pslist -dmx 即可。

    C#执行Dos命令项目源代码

    C#执行Dos命令项目源代码,使用多线程技术,采用异步读取窗口返回信息,效果不错。

    进程管理经典软件MFC

    linux下查看系统进程的命令是ps。 目录 进程的分类1.基本系统进程 2.常见系统进程解释 (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) (22) (23) ...

    cmd操作命令和linux命令大全收集

    它在 Windows NT/2000/XP 中均可使用,但在 Windows 98 中却没有集成这一个工具。 4. explorer-------打开资源管理器 5. logoff---------注销命令 6. shutdown-------60秒倒计时关机命令 7. lusrmgr.msc----本机...

    《操作系统原理与设计》全本

    3.4.2 多线程环境中的进程与线程 65 3.4.3 线程的实现 69 3.4.4 实例研究:JAVA语言中的线程 71 3.5 实例研究:SOLARIS的进程与线程 78 3.5.1 Solaris中的进程与线程概念 78 3.5.2 Solaris的进程结构 79 3.5.3 ...

    病毒攻杀编程技术资料!

    [得到进程命令行] [得到进程父ID] [得到进程的模块] [得到进程的线程] [快速更改分辨率程序] [快速格式化] [快速蓝屏] [恢复Inline-Hook(Only XP SP2)] [挂起进程] [控制远程计算机] [控制鼠标] [数字签名验证] ...

    redhat linux教材20课程学习文档

    2.5 线程与进程的基本概念 2.5.1 基本概念 2.5.2 僵尸进程 2.5.3 进程和多任务的实现 2.6 Linux设备与网络 2.7 Shell控制台 第二部分 基础知识 第三章 Shell命令使用 3.1 控制台相关命令 clear 命令 echo 命令 ...

    Visual C++开发经验技巧宝典(第9章)

    0550 怎样在程序中执行DOS命令 359 0551 修改其他进程中窗口的标题 359 0552 如何设计换肤程序 360 0553 PE档案格式分析 364 0554 修改应用程序图标 365 0555 列举应用程序使用的dll文件 368 0556 调用...

    Visual C++开发经验技巧宝典(第9章)—1

    0550 怎样在程序中执行DOS命令 359 0551 修改其他进程中窗口的标题 359 0552 如何设计换肤程序 360 0553 PE档案格式分析 364 0554 修改应用程序图标 365 0555 列举应用程序使用的dll文件 368 0556 调用...

    Tcl_TK编程权威指南pdf

    Tcl解释器已经从Unix平台移植到了DOS、Windows、OS/2、NT以及Macintosh环境中,而TK工具包也从X window系统移植到了Windows和Macintosh环境中。 1988年,当我在Berkeley做ousterhout教授的博士生时,第一次听说了...

    PocketControllerPro6.02 简体中文绿色版

    使用Remote DOS Box工具远程执行DOS命令。Pocket PC skin浏览。全屏背景模式,允许用户使用纯色或HTML背景,适合演示之用。所见即所得”打印。打印窗口,可以采用不同的尺寸、旋转角,包括人像(portrait)模式或...

    windowsnt 技术内幕

    使用Net Start命令 使用Net Statistic命令 使用Net Stop命令 使用Net TIME命令 使用Net use命令 使用Net User命令 使用Net VIEW命令 企业级Windows NT Server 4.0使用和支持的考试(70-68) 理解70-68考试中的6个部分 ...

    易语言 茶凉专用模块

    子程序 创建线程, 整数型, 公开, 创建一个线程来启动子程序(返回线程句柄) .参数 线程子程序, 子程序指针, , 欲启动的线程子程序指针 .参数 传递参数, 整数型, 可空 .子程序 打开网页, 逻辑型, 公开, 打开指定网址...

    API之网络函数---整理网络函数及功能

    其中包括文件、文件映射、进程、线程、安全和同步对象等 CompareFileTime 对比两个文件的时间 CopyFile 复制文件 CreateDirectory 创建一个新目录 CreateFile 打开和创建文件、管道、邮槽、通信服务、设备以及...

    简单的Windows远程控制代码

    有一些简单的功能 比如远程发送消息 比如远程执行DOS命令 比如远程浏览或杀死进程 锁定鼠标和键盘等 代码特点 简短易懂 用到多线程 SOCK HOOK 以及一些API函数 由于时间仓促还不完善希望网友共同研究

    DELPHI技巧集(集合各种开发源码)

    16 Cookite.htm Delphi 3中Cookie的建立使用 6K 17 Copy_screen.htm 一个实用的Delphi屏幕拷贝程序的设计 11K 18 Create_oracle7.htm 开发基于ORACLE7数据库的管理信息系统 9K 19 Cs_fast.htm 提高客户机/...

    Windows 系统错误代码简单分析

     0170 所要求的资源正在使用中。  0173 锁定请求对于提供的取消区域不重要。  0174 文件系统不支持到锁定类型的自动更改。  0180 系统检测到错误的区域号码。  0182 操作系统无法运行 %1。  0183 不...

    JAVA基础课程讲义

    常用dos命令 21 本章笔试作业 21 本章上机操作 21 第二章(1) 编程的基本概念 22 注释 22 标识符 22 关键字/保留字 23 变量(variable) 24 常量(Constant) 25 命名规则(规范) 25 基本数据类型(primitive data type) 26...

    IIS6.0 IIS,互联网信息服务

    需要注意的是,如果你要用一个IP地址对应多个不同的FTP服务器,则只能用使用不同的端口号的方法来实现,而不支持“主机头名”的做法。 对于已建立好的FTP服务器,在浏览器中访问将使用如“ftp://192.168.0.1”或是...

    如何查杀运行状态下的EXE、DLL病毒

    也可以用工具IceSword(冰刃)中"文件/设置/禁止进线程创建",来停掉其中一个进程,再停掉另一个进程,杀掉病毒。  3、对于像被"熊猫烧香"感染的EXE文件,上述两种手工处理无效,因为无法手工清除受病毒感染的文件...

Global site tag (gtag.js) - Google Analytics