You can find quite a lot of theory regarding the thread of screws which we will not likely go into to listed here, but you'll find a wonderful in depth description here on Wikipedia.
sq. recess screwdrivers Use a https://types.blog/types-of-screw-heads/