>>Two: If a
>>single process in a multi-process application crashes, that process
>>alone dies. The buffer is flushed, and all the other child processes
>>continue happily along. In a multi-threaded environment, when one
>>thread dies, they all die.
> So this means that if a single connection thread dies in MySQL, all
> connections die?
> Seems rather serious. I am doubtful that is how they have implemented it.
That all depends on how you define crash. If a thread causes an
unhandled signal to be raised such as an illegal memory access or a
floating point exception, the process will die, hence killing all
threads. But a more advanced multi-threaded environment will install
handlers for such signals that will handle the error gracefully. It
might not even be necesarry to kill the offending thread.
Some conditions are harder to handle than others, such as stack overflow
and out of memory, but it can be done. So to state that multi-threaded
environments in general kills all threads when one thread chrashes is
not true. Having said that, I have no clue as to how advanced MySQL is
in this respect.
In response to
pgsql-general by date
|Next:||From: Tom Lane||Date: 2004-10-27 18:21:53|
|Subject: Re: Bug: 8.0 beta1 either view optimization or pgdump/pgrestore |
|Previous:||From: Eric||Date: 2004-10-27 18:14:25|