Subject: Re: Threading problems
To: Nathan J. Williams <>
From: Johnny C. Lam <>
List: tech-kern
Date: 11/24/2004 17:05:33
Nathan J. Williams wrote:
> As before, I would counsel caution as to whether the modules being
> opened should, in fact, be linked against libpthread. This essentially
> becomes "do they call pthread_create()"? For the applications that
> have been listed earlier in this thread, is it possible to enumerate
> the modules that link against libpthread and check them for this
> property? I fear that a module is being linked against libpthread to
> satisfy the module's attempts at thread-safety in the presence of a
> threaded app, but the app isn't threaded either.

What would happen if a module is linked with "-pthread", and the 
application that dlopens it is linked with "-pthread", but neither of 
them are actually threaded?  Would the application fail?  Or would it 
work properly but not optimally?  This question becomes important in 
pkgsrc when we figure out in which way we can err without breaking packages.


	-- Johnny Lam <>