What are the machining methods of thread?

What are the machining methods of thread?