Linux › Section H · Processes and resource utilization › Topic H.4
Threads
Many of the programs that matter most on a server, from web servers to databases, are one process running many threads at once. Seeing those threads, and understanding what they share, explains odd figures such as a process using 380% of the CPU.
In this topic
- One process, several flows of execution
- What threads share and what they keep
- Why programs use threads
- How Linux implements threads
- Viewing threads with ps and top
- Worked example: counting a server's threads
- Threads in resource monitoring
- Programming threads: pthreads and locks
- Worked example: a lost update
- Common mistakes to avoid
- Key takeaways
This topic is part of Wuanberri Pro. Checking your access…
