Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Apache and MySQL multithreaded applications?

I was wondering if the default installations of Apache and MySQL on Windows/Linux are multithreaded or not?

like image 343
Anurag Ashok Avatar asked Dec 05 '12 07:12

Anurag Ashok


2 Answers

It depends on how to look at it.

MySQL allows you to run multiple threads at the same time (this comes to available CPU/RAM resources), but it won't allow you to run a single query using multiple threads.

Apache is multithreaded, this is the only way how the web application server could respond to multiple requests from different clients.

like image 182
Andrew Avatar answered Oct 29 '22 21:10

Andrew


Yes, Apache and MySQL multithreaded.

By the way, they run as a single process on the server.

like image 24
Sifeng Avatar answered Oct 29 '22 21:10

Sifeng