Re: Threads vs. Processes - the war goes on?



On 27 Nov 2005 10:11:26 -0800 EyalS <eyal.susser@xxxxxxxxx> wrote:

| Having corroborated my suspicions that the cloned process would not
| crash (I'm cloning using CLONE_VM), I was wondering if there are any
| clone pitfalls. If there aren't any bad ones, I prefer cloning,
| because it brings greater stability.

A SIGSEGV actually happening indicates a likelihood of corrupt memory.
Every thread sharing that memory should be terminated for this reason.
It seems pthread does the right thing. You seem to be trying to defeat
this protection, which will be at great risk to your program. I'd focus
more on making sure SIGSEGV doesn't happen.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
.