Prof. Chaddock gave a detailed description of producing a large pitch thread in a lathe for his Quorn construction series in ME and book.
IIRC, he chose milling with a toolpost mounted spindle. The leadscrew was driven by adapting the lathe drive, using a large, home-made plywood pulley to get an overall very low ratio. I think that he discounted "handraulic " drive because of the time traverses would take on the fairly long thread.
I think machining an internal thread would be tricky. The Quorn uses a peg to engage the thread.