Threadings machined on non-cylindrical external surfaces