in reply to [threads] Sharing object through threads

i must say that sharing objects across threads is frought with difficulty....it is alot safer to design your app to only share scalars, arrays, and filehandles, sockets,etc. ..... the problem is even though threads may technically allow sharing of objects, you often run into what is called thread-safety problems, where certain modules create conflicting globals....and are not threadsafe..... causes alot of node postings here on perlmonks, see: shared complex scalars between threads and Re: Passing objects between threads...any solutions? (shared objects)

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re: [threads] Sharing object through threads