Getting thread count for proc in linux
来源:互联网 发布:纯html商城源码 编辑:程序博客网 时间:2024/06/06 03:32
One of the developers at the company that I work for has asked me how to see number of threads per process. And I don't know how to do that. I'm using RedHat ES3.
I know in solaris you can see number of treads per process in top command, but linux version doesn't give this information. So my question is how to see thread count in linux?
You could probably abuse ps with some filtering...
start with
ps -A -mPl
Then you can find the children belonging to the
PPID you're after and count them ...
I did ps -elm|grep $pid|grep -v grep |wc -l
and it worked.
- Getting thread count for proc in linux
- Getting Your Random Sample in Proc SQL
- proc 文件系统 for linux
- PHP Tip: Getting the property count for an object
- Thread in Linux
- Thread in linux
- Thread in WIN32 & Linux
- NVIDIA CUDA Getting Started Guide for Linux
- Getting the CPU count
- Linux Annoyances for Geeks : Getting the Most Flexible System in the World Just the Way You Want It
- Linux proc file system for module development
- Linux process/thread in practice
- Getting over the dangers of rm command in Linux---reference
- Notes for Advanced Linux Programming - 1. Getting Started
- Getting started with the MeeGo SDK for Linux
- Getting started with the MeeGo v1.2 SDK for Linux
- kernel thread, wait queue, /proc/sys/kernel entry, call usermode handler in kernel mode
- for in linux
- Android升级ADT和SDK版本运行项目 报出java.lang.VerifyError 异常解决办法
- 虚拟机中的XP系统忘记密码解决办法
- Java内存模型
- 常用正则表达式
- 创建型设计模式——单例模式
- Getting thread count for proc in linux
- poj 2241 叠方块 基本动态规划
- ServletContextListener使用详解
- Java序列化【草案一】
- 分支预测器(Branch Predictor) 汇总介绍
- rails内置特性(样式设计积累)
- 致诸位新程序员:来自Chuck Jazdzewski慈父般的忠告
- Flex Thread Libray - Summary
- SMC技术