SlideShare a Scribd company logo
1 of 2
What are the ps command line options to view information about threads?
Solution
For Windows, I think Process Explorer shows you all the threads under a process.
use the ps command.
From the man page, there are a few thread options:
THREAD DISPLAY
-H Show threads as if they were processes
-L Show threads, possibly with LWP and NLWP columns
-T Show threads, possibly with SPID column
-m Show threads after processes
The classical tool top shows processes by default but can be told to show threads with the H key
press or -H command line option.
There is also htop, which is similar to top but has scrolling and colors;
it shows all threads by default (but this can be turned off).
ps also has a few options to show threads, especially H and -L.
There are also GUI tools that can show information about threads,
for example qps (a simple GUI wrapper around ps) or conky (a system monitor with lots of
configuration options).
For each process, a lot of information is available in /proc/12345 where 12345 is the process ID.
Information on each thread is available in /proc/12345/task/67890 where 67890 is the kernel
thread ID.
This is where ps, top and other tools get their information.
What are the ps command line options to view information about threads.docx

More Related Content

Similar to What are the ps command line options to view information about threads.docx

Processes And Job Control
Processes And Job ControlProcesses And Job Control
Processes And Job Controlahmad bassiouny
 
Volatile memory analysis
Volatile memory analysisVolatile memory analysis
Volatile memory analysisHimanshu0734
 
Learning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxLearning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxShashwat Shriparv
 
Devel::hdb debugger talk
Devel::hdb debugger talkDevel::hdb debugger talk
Devel::hdb debugger talkabrummett
 
LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7VCP Muthukrishna
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentationnishantsri
 
Process management in linux
Process management in linuxProcess management in linux
Process management in linuxMazenetsolution
 
Linux: Beyond ls and cd
Linux: Beyond ls and cdLinux: Beyond ls and cd
Linux: Beyond ls and cdjacko91
 
Operating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slideOperating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slideSyaiful Ahdan
 
Tips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development EfficiencyTips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development EfficiencyOlivier Bourgeois
 
Linux tech talk
Linux tech talkLinux tech talk
Linux tech talkPrince Raj
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsBITS
 

Similar to What are the ps command line options to view information about threads.docx (20)

Processes And Job Control
Processes And Job ControlProcesses And Job Control
Processes And Job Control
 
Linux Workshop , Day 3
Linux Workshop , Day 3Linux Workshop , Day 3
Linux Workshop , Day 3
 
Linux
LinuxLinux
Linux
 
Unix commands
Unix commandsUnix commands
Unix commands
 
Volatile memory analysis
Volatile memory analysisVolatile memory analysis
Volatile memory analysis
 
Linux And perl
Linux And perlLinux And perl
Linux And perl
 
Learning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxLearning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptx
 
Devel::hdb debugger talk
Devel::hdb debugger talkDevel::hdb debugger talk
Devel::hdb debugger talk
 
Linux programming - Getting self started
Linux programming - Getting self started Linux programming - Getting self started
Linux programming - Getting self started
 
LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Process management in linux
Process management in linuxProcess management in linux
Process management in linux
 
Linux: Beyond ls and cd
Linux: Beyond ls and cdLinux: Beyond ls and cd
Linux: Beyond ls and cd
 
Operating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slideOperating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slide
 
Tips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development EfficiencyTips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development Efficiency
 
Linux tech talk
Linux tech talkLinux tech talk
Linux tech talk
 
Shellprogramming
ShellprogrammingShellprogramming
Shellprogramming
 
Linux
LinuxLinux
Linux
 
Nithi
NithiNithi
Nithi
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 

More from loisj1

What are the three reasons that the environment matters- Which of thos.docx
What are the three reasons that the environment matters- Which of thos.docxWhat are the three reasons that the environment matters- Which of thos.docx
What are the three reasons that the environment matters- Which of thos.docxloisj1
 
What are the software security activities in the life cycle-SolutionTh.docx
What are the software security activities in the life cycle-SolutionTh.docxWhat are the software security activities in the life cycle-SolutionTh.docx
What are the software security activities in the life cycle-SolutionTh.docxloisj1
 
What are the steps a company cant take to protext itself against the s.docx
What are the steps a company cant take to protext itself against the s.docxWhat are the steps a company cant take to protext itself against the s.docx
What are the steps a company cant take to protext itself against the s.docxloisj1
 
What are the risks common to financial institutions- liquidity- exchan.docx
What are the risks common to financial institutions- liquidity- exchan.docxWhat are the risks common to financial institutions- liquidity- exchan.docx
What are the risks common to financial institutions- liquidity- exchan.docxloisj1
 
what are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docx
what are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docxwhat are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docx
what are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docxloisj1
 
What are the primary keys of the following table- Explain why the foll.docx
What are the primary keys of the following table- Explain why the foll.docxWhat are the primary keys of the following table- Explain why the foll.docx
What are the primary keys of the following table- Explain why the foll.docxloisj1
 
What are the major differences between capitalism- communism- and soci.docx
What are the major differences between capitalism- communism- and soci.docxWhat are the major differences between capitalism- communism- and soci.docx
What are the major differences between capitalism- communism- and soci.docxloisj1
 
What are the issues involved in measurement in organizational developm.docx
What are the issues involved in measurement in organizational developm.docxWhat are the issues involved in measurement in organizational developm.docx
What are the issues involved in measurement in organizational developm.docxloisj1
 
What are the key differences between Windows- Apple- and Linux-Solutio.docx
What are the key differences between Windows- Apple- and Linux-Solutio.docxWhat are the key differences between Windows- Apple- and Linux-Solutio.docx
What are the key differences between Windows- Apple- and Linux-Solutio.docxloisj1
 
What are the implications of unstructured data to database design- Sup.docx
What are the implications of unstructured data to database design- Sup.docxWhat are the implications of unstructured data to database design- Sup.docx
What are the implications of unstructured data to database design- Sup.docxloisj1
 
What are the income levels and infrastructure development of Mobius SL.docx
What are the income levels and infrastructure development of Mobius SL.docxWhat are the income levels and infrastructure development of Mobius SL.docx
What are the income levels and infrastructure development of Mobius SL.docxloisj1
 
What are the four stages of John Dewey SolutionFor Dewey- learning wa.docx
What are the four stages of John Dewey  SolutionFor Dewey- learning wa.docxWhat are the four stages of John Dewey  SolutionFor Dewey- learning wa.docx
What are the four stages of John Dewey SolutionFor Dewey- learning wa.docxloisj1
 
What are the equilibrium concentrations- And how do you solve it- What.docx
What are the equilibrium concentrations- And how do you solve it- What.docxWhat are the equilibrium concentrations- And how do you solve it- What.docx
What are the equilibrium concentrations- And how do you solve it- What.docxloisj1
 
What are the essential outcomes of secure system retirement- Justify y.docx
What are the essential outcomes of secure system retirement- Justify y.docxWhat are the essential outcomes of secure system retirement- Justify y.docx
What are the essential outcomes of secure system retirement- Justify y.docxloisj1
 
What are the Disadvantages of IFRS (International Financial Reporting.docx
What are the Disadvantages of IFRS (International Financial Reporting.docxWhat are the Disadvantages of IFRS (International Financial Reporting.docx
What are the Disadvantages of IFRS (International Financial Reporting.docxloisj1
 
What are the differences between a linked list and a stack-SolutionA S.docx
What are the differences between a linked list and a stack-SolutionA S.docxWhat are the differences between a linked list and a stack-SolutionA S.docx
What are the differences between a linked list and a stack-SolutionA S.docxloisj1
 
what are the con-'s of virtual reality in specificSolutionDisadvantage.docx
what are the con-'s of virtual reality in specificSolutionDisadvantage.docxwhat are the con-'s of virtual reality in specificSolutionDisadvantage.docx
what are the con-'s of virtual reality in specificSolutionDisadvantage.docxloisj1
 
What are the advantages of IPv6 over IPv4- Why is security often consi.docx
What are the advantages of IPv6 over IPv4- Why is security often consi.docxWhat are the advantages of IPv6 over IPv4- Why is security often consi.docx
What are the advantages of IPv6 over IPv4- Why is security often consi.docxloisj1
 
What are some tax consequences related to a qualified pension plan- (P.docx
What are some tax consequences related to a qualified pension plan- (P.docxWhat are some tax consequences related to a qualified pension plan- (P.docx
What are some tax consequences related to a qualified pension plan- (P.docxloisj1
 
What are some primary reasons why an embedded system developer would u.docx
What are some primary reasons why an embedded system developer would u.docxWhat are some primary reasons why an embedded system developer would u.docx
What are some primary reasons why an embedded system developer would u.docxloisj1
 

More from loisj1 (20)

What are the three reasons that the environment matters- Which of thos.docx
What are the three reasons that the environment matters- Which of thos.docxWhat are the three reasons that the environment matters- Which of thos.docx
What are the three reasons that the environment matters- Which of thos.docx
 
What are the software security activities in the life cycle-SolutionTh.docx
What are the software security activities in the life cycle-SolutionTh.docxWhat are the software security activities in the life cycle-SolutionTh.docx
What are the software security activities in the life cycle-SolutionTh.docx
 
What are the steps a company cant take to protext itself against the s.docx
What are the steps a company cant take to protext itself against the s.docxWhat are the steps a company cant take to protext itself against the s.docx
What are the steps a company cant take to protext itself against the s.docx
 
What are the risks common to financial institutions- liquidity- exchan.docx
What are the risks common to financial institutions- liquidity- exchan.docxWhat are the risks common to financial institutions- liquidity- exchan.docx
What are the risks common to financial institutions- liquidity- exchan.docx
 
what are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docx
what are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docxwhat are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docx
what are the Pro-'s and Con-'s of virtual reality -SolutionPro-'s of v.docx
 
What are the primary keys of the following table- Explain why the foll.docx
What are the primary keys of the following table- Explain why the foll.docxWhat are the primary keys of the following table- Explain why the foll.docx
What are the primary keys of the following table- Explain why the foll.docx
 
What are the major differences between capitalism- communism- and soci.docx
What are the major differences between capitalism- communism- and soci.docxWhat are the major differences between capitalism- communism- and soci.docx
What are the major differences between capitalism- communism- and soci.docx
 
What are the issues involved in measurement in organizational developm.docx
What are the issues involved in measurement in organizational developm.docxWhat are the issues involved in measurement in organizational developm.docx
What are the issues involved in measurement in organizational developm.docx
 
What are the key differences between Windows- Apple- and Linux-Solutio.docx
What are the key differences between Windows- Apple- and Linux-Solutio.docxWhat are the key differences between Windows- Apple- and Linux-Solutio.docx
What are the key differences between Windows- Apple- and Linux-Solutio.docx
 
What are the implications of unstructured data to database design- Sup.docx
What are the implications of unstructured data to database design- Sup.docxWhat are the implications of unstructured data to database design- Sup.docx
What are the implications of unstructured data to database design- Sup.docx
 
What are the income levels and infrastructure development of Mobius SL.docx
What are the income levels and infrastructure development of Mobius SL.docxWhat are the income levels and infrastructure development of Mobius SL.docx
What are the income levels and infrastructure development of Mobius SL.docx
 
What are the four stages of John Dewey SolutionFor Dewey- learning wa.docx
What are the four stages of John Dewey  SolutionFor Dewey- learning wa.docxWhat are the four stages of John Dewey  SolutionFor Dewey- learning wa.docx
What are the four stages of John Dewey SolutionFor Dewey- learning wa.docx
 
What are the equilibrium concentrations- And how do you solve it- What.docx
What are the equilibrium concentrations- And how do you solve it- What.docxWhat are the equilibrium concentrations- And how do you solve it- What.docx
What are the equilibrium concentrations- And how do you solve it- What.docx
 
What are the essential outcomes of secure system retirement- Justify y.docx
What are the essential outcomes of secure system retirement- Justify y.docxWhat are the essential outcomes of secure system retirement- Justify y.docx
What are the essential outcomes of secure system retirement- Justify y.docx
 
What are the Disadvantages of IFRS (International Financial Reporting.docx
What are the Disadvantages of IFRS (International Financial Reporting.docxWhat are the Disadvantages of IFRS (International Financial Reporting.docx
What are the Disadvantages of IFRS (International Financial Reporting.docx
 
What are the differences between a linked list and a stack-SolutionA S.docx
What are the differences between a linked list and a stack-SolutionA S.docxWhat are the differences between a linked list and a stack-SolutionA S.docx
What are the differences between a linked list and a stack-SolutionA S.docx
 
what are the con-'s of virtual reality in specificSolutionDisadvantage.docx
what are the con-'s of virtual reality in specificSolutionDisadvantage.docxwhat are the con-'s of virtual reality in specificSolutionDisadvantage.docx
what are the con-'s of virtual reality in specificSolutionDisadvantage.docx
 
What are the advantages of IPv6 over IPv4- Why is security often consi.docx
What are the advantages of IPv6 over IPv4- Why is security often consi.docxWhat are the advantages of IPv6 over IPv4- Why is security often consi.docx
What are the advantages of IPv6 over IPv4- Why is security often consi.docx
 
What are some tax consequences related to a qualified pension plan- (P.docx
What are some tax consequences related to a qualified pension plan- (P.docxWhat are some tax consequences related to a qualified pension plan- (P.docx
What are some tax consequences related to a qualified pension plan- (P.docx
 
What are some primary reasons why an embedded system developer would u.docx
What are some primary reasons why an embedded system developer would u.docxWhat are some primary reasons why an embedded system developer would u.docx
What are some primary reasons why an embedded system developer would u.docx
 

Recently uploaded

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

What are the ps command line options to view information about threads.docx

  • 1. What are the ps command line options to view information about threads? Solution For Windows, I think Process Explorer shows you all the threads under a process. use the ps command. From the man page, there are a few thread options: THREAD DISPLAY -H Show threads as if they were processes -L Show threads, possibly with LWP and NLWP columns -T Show threads, possibly with SPID column -m Show threads after processes The classical tool top shows processes by default but can be told to show threads with the H key press or -H command line option. There is also htop, which is similar to top but has scrolling and colors; it shows all threads by default (but this can be turned off). ps also has a few options to show threads, especially H and -L. There are also GUI tools that can show information about threads, for example qps (a simple GUI wrapper around ps) or conky (a system monitor with lots of configuration options). For each process, a lot of information is available in /proc/12345 where 12345 is the process ID. Information on each thread is available in /proc/12345/task/67890 where 67890 is the kernel thread ID. This is where ps, top and other tools get their information.