What are the two main categories of locking device used with screwed fastenings?

What are the two main categories of locking device used with screwed fastenings?