Previous | Next --- Slide 6 of 40
Back to Lecture Thumbnails
mitraraman

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?

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.

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.