Download presentation
Presentation is loading. Please wait.
1
Linux 202 Training Module Program and Process
2
This presentation will cover the following topics
Thread top ps details mem, cpu, etc
3
Thread A thread of execution is often regarded as the smallest unit of processing that a scheduler works on. Following are some of the major differences between the thread and the processes : Processes do not share their address space while threads executing under same process share the address space. Context switching between threads is fast as compared to context switching between processes
4
#include <pthread.h>
int pthread_create(pthread_t *restrict tidp, const pthread_attr_t *restrict attr, void *(*start_rtn)(void), void *restrict arg)
5
Top command The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel. top top - 10:28:24 up 4 days, 22:13, 4 users, load average: 0.00, 0.01, 0.05 Tasks: 219 total, 1 running, 217 sleeping, 0 stopped, 1 zombie Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: k total, k used, k free, k buffers Swap: k total, k used, k free, k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2494 netstorm m S :09.97 java 2588 root m 23m 1312 S :07.85 java 2867 root m 26m 1272 S :05.50 java 1 root S :00.87 init
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.