Does libreoffice convert to pdf support multi-threading?

I have a Java Application which calls libreoffice command to convert documents to PDF. Since my application can have multiple requests at same point of time as Java supports multi-threading, I’m firing multiple libreoffice convert commands but somehow until the first command completes the second command doesn’t complete even though the second document was quite small document in size.

For Ex: First document given to convert is of size 2 MB
Second document given to convert is of size 50 KB

Until the first document conversion completes, second document conversion doesn’t complete even though the size of the 2nd document is quite small.

Is this the limitation of libreoffice that multi-threading is not supported? I had read in jodconverter page saying so

http://manpages.ubuntu.com/manpages/precise/man1/jodconverter.1.html

Please help,
Gowtham

I am not sure what you are experiencing is a multi-threading issue. You can only run one instance of LO (soffice.bin) at a time, so I imagine the script is waiting until the first process has finished before running again. If you try running a command-line convert on a very large document it should give an indication of whether more than one core is being used for this task. If multiple cores are being used, then that would indicate multi-thread support (per process) for the conversion to PDF.

This AskLO answer from one year ago indicates that LO is largely not multi-thread capable. Bugs fdo#62774 (XML parsing) and fdo#65046 (file open) have been raised to improve this situation.