Home All Groups Group Topic Archive Search About

To use multiple processes or threads?

Author
1 Apr 2005 4:57 PM
Brett
What are the advantages/disadvantages of using one process with multiple
threads or doing the same task with multiple processes, each having one
thread?

I see using multiple threads under one process as being a problem.
Potentially, one thread may crash and could bring down the whole process,
including all the other threads.

Using one process per thread seems more independent.  This is similar to
what happens when you open multiple Notepads.

Thanks,
Brett

Author
1 Apr 2005 5:52 PM
rawCoder
Isnt spawning multiple processes under one appdomain is more costly than
spawning threads under a process ?

HTH
rawCoder


Show quoteHide quote
"Brett" <no@spam.com> wrote in message
news:OR6brvtNFHA.3928@TK2MSFTNGP09.phx.gbl...
> What are the advantages/disadvantages of using one process with multiple
> threads or doing the same task with multiple processes, each having one
> thread?
>
> I see using multiple threads under one process as being a problem.
> Potentially, one thread may crash and could bring down the whole process,
> including all the other threads.
>
> Using one process per thread seems more independent.  This is similar to
> what happens when you open multiple Notepads.
>
> Thanks,
> Brett
>
>