You can create a profile of the thread similar to a threading tool and then use the Create>Swept Solid>Helix and then use that to subtract from the cylinder. There is some made already under Tools>Fasteners>Stud if you need standard sizes.
Helix/threads take up a lot of memory so they’re not used much CAD world.