How does Apache's worker module account for the protection arguments given above? Specifically, if the server is using non-thread safe libraries or there is a crash in one thread/worker, what are its protocols?
This comment was marked helpful 0 times.
chenc3
If each thread does not write to shared object but write to database instead, I think one thread crash would not affect other threads.
This comment was marked helpful 0 times.
sfackler
The default response to a fault in one thread of a process is to kill the entire process. If the threads share any state at all, it's a huge mess to try to kill one thread without leaving the process as a whole in some weird state. If threads aren't sharing any state, then you may as well set up separate processes for them.
How does Apache's worker module account for the protection arguments given above? Specifically, if the server is using non-thread safe libraries or there is a crash in one thread/worker, what are its protocols?
This comment was marked helpful 0 times.
If each thread does not write to shared object but write to database instead, I think one thread crash would not affect other threads.
This comment was marked helpful 0 times.
The default response to a fault in one thread of a process is to kill the entire process. If the threads share any state at all, it's a huge mess to try to kill one thread without leaving the process as a whole in some weird state. If threads aren't sharing any state, then you may as well set up separate processes for them.
This comment was marked helpful 0 times.