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