Internal and external thread milling with one milling cutter