Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linux 202 Training Module Program and Process.

Similar presentations


Presentation on theme: "Linux 202 Training Module Program and Process."— Presentation transcript:

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


Download ppt "Linux 202 Training Module Program and Process."

Similar presentations


Ads by Google