You can find quite a lot of theory in regards to the thread of screws which we will never go into to here, but you could find a great in depth description in this article on Wikipedia.
Camcar Textron designed this https://types.blog/types-of-screw-heads/