I wrote an article for Baeldung on how to use xz for compressing and decompressing files from the Linux command line. It included using xz with tar and speeding up archiving with multithreading.
xz
tar
The article is available here.