Machines with a toothed cutter in the shape of a spur-gear of the like which is rotated to generate the thread profile as the work rotates