tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Issues with libpthreads

On Fri, Mar 04, 2011 at 11:34:44AM +0100, Martin Husemann wrote:
> On Fri, Mar 04, 2011 at 09:59:30AM +0100, Peter Bex wrote:
> > Is mixing and matching pthreads-using libraries with non-pthreads-using
> > libraries really impossible?
> [Ignoring minor details for brevity]
> A process is either threaded or not threaded. You can not use libc for five
> mintues in non-threaded mode, then load a shared library wich requires
> threading and start creating threads.
> This is not a bug.
> As Antti said, there are several solutions for your problem. The most
> simple way is to link the application (in your case the interpreter)
> against libpthread.

Thanks for both your replies.  This is quite a pitfall, though!

"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Home | Main Index | Thread Index | Old Index