sir pannels
08-06-2009, 02:50 PM
hello there
im trouble shooting some problems with the performance of a website that is a having some issues and I'm currently at the mysql point of my invesigation. A few questions have arisen.
What is the difference between threads and processes? It seems everytime a query is ran on the mysql server, the thread count goes up 1. When it ends, thread count goes down 1. Are threads the same as processes?
There is always one more thread than their are processes running under show processlist.
Additionally, if I show the status of mysql I get 4 variations of threads...
| Threads_cached | 0 |
| Threads_connected | 2 |
| Threads_created | 43 |
| Threads_running | 1 |
Any assistance with working out what exactly the difference between the difference thread types and also processes are then that would be excellent.
Cheers,
im trouble shooting some problems with the performance of a website that is a having some issues and I'm currently at the mysql point of my invesigation. A few questions have arisen.
What is the difference between threads and processes? It seems everytime a query is ran on the mysql server, the thread count goes up 1. When it ends, thread count goes down 1. Are threads the same as processes?
There is always one more thread than their are processes running under show processlist.
Additionally, if I show the status of mysql I get 4 variations of threads...
| Threads_cached | 0 |
| Threads_connected | 2 |
| Threads_created | 43 |
| Threads_running | 1 |
Any assistance with working out what exactly the difference between the difference thread types and also processes are then that would be excellent.
Cheers,