Re: Multithreading with WWW-Lib?

Duc Huy Hong wrote:
> 
> Hi,
> 
> I am using the WWW-Lib-5.3.2 with a Preemptive profile in a Multithreaded
> manner.
> Where I start several Thread each calling th WWLib Api to make HTTP requests
> in Solaris.
> I am seeing some Core dump with memory access violations
> 
> First can anyone tell me if  WWW-Lib-5.3.2 is thread safe?

No, it's not, please have a look in the list archive at w3c site. There
have been several threads about this.
In short, IIRC, if you want to use libwww in a threaded application, you
have to "serialize" the calls to the libwww (i.e. there should be only
one thread making libwww requests)
Making the libwww itself thread-safe would be a major task.

> Second do I have to use Start a separate Preemptive profile for each Thread
> to initialize the WWW-Lib?
> 
> Thanks
> Any help would be much appreciated.
> Duc

All the best,
Hermann
-- 
Hermann Gundel
Software AG, Darmstadt, Germany
R&D DBMS Open Systems
tel: +49-6151-921127
email: Hermann.Gundel@softwareag.com

Received on Monday, 5 February 2001 10:21:27 UTC