Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: prefork / worker relationship with php-pthreads |
|
Author |
|
sdbhabal
Joined: 25 Dec 2014 Posts: 3 Location: India, Thane
|
Posted: Fri 26 Dec '14 7:39 Post subject: prefork / worker relationship with php-pthreads |
|
|
I wanted to know the relationship between MPM’s (prefork/worker) & php-pthread.
Is they are interdependent with each others? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 26 Dec '14 18:36 Post subject: |
|
|
It depends if you run PHP over (f)cgi(d) or as module.
If you run it over (f)cgi(d) the process tree looks like this
The green ones are the threads (with worker mpm).
Working with pthreads the PHP processes will create sub threads itself. |
|
Back to top |
|
sdbhabal
Joined: 25 Dec 2014 Posts: 3 Location: India, Thane
|
Posted: Sat 27 Dec '14 9:06 Post subject: |
|
|
Hello James,
Thanks for your valuable reply.
What is the command you used to see this output? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 27 Dec '14 14:20 Post subject: |
|
|
sdbhabal wrote: |
What is the command you used to see this output? |
htop |
|
Back to top |
|
|
|
|
|
|