logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: prefork / worker relationship with php-pthreads
Author
sdbhabal



Joined: 25 Dec 2014
Posts: 2
Location: India, Thane

PostPosted: Fri 26 Dec '14 7:39    Post subject: prefork / worker relationship with php-pthreads Reply with quote

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: 7306
Location: Germany, Next to Hamburg

PostPosted: Fri 26 Dec '14 18:36    Post subject: Reply with quote

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: 2
Location: India, Thane

PostPosted: Sat 27 Dec '14 9:06    Post subject: Reply with quote

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: 7306
Location: Germany, Next to Hamburg

PostPosted: Sat 27 Dec '14 14:20    Post subject: Reply with quote

sdbhabal wrote:

What is the command you used to see this output?


htop
Back to top


Reply to topic   Topic: prefork / worker relationship with php-pthreads View previous topic :: View next topic
Post new topic   Forum Index -> Apache