Assuming they are old, Watches are my bet. Or precision measurement instruments.
Lots of different ways to make them. Die heads, polygon milling (currently common on Swiss type lathes), thread rolling, single point threading, just to name a few.
This video is a Tornos Nano Swiss Lathe using...