I wonder what you try to gain by using multiple threads with what is essentially an IO-bound operation.
I wouldn't try to do IO on the same channel with more than one thread. If you want to create XML fragments and output them in parallel, I would create the fragments in separate threads and send them to one output thread via Thread::Queue.
In reply to Re^3: Multithreaded xml writing using XML::Writer
by Corion
in thread Multithreaded xml writing using XML::Writer
by DreamT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |