<div class="gmail_quote">On Mon, Mar 19, 2012 at 15:47, Pedro Torres <span dir="ltr">&lt;<a href="mailto:torres.pedrozpk@gmail.com">torres.pedrozpk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I has some experience with PETSc + MPI, but neither with PETSc+Pthreads nor Pthreads alone. Taking in to account that pthread was recenltly added to petsc, is it possible to code a program that solve the same linear system with two different solvers, one on each thread?. I guess that can be done calling different ksp object, one on each thread,  but I don&#39;t have clear, first if this is possible and second how to do that. Sorry if my question is meaningless, I just started to study pthreads.</div>


<div><div><br></div><div>I will really appreciated any advice. Thanks in advance.</div></div></blockquote></div><br><div>No, the threading model does not work like this (and the performance of a system that did work that way would be a delicate beast).</div>