In computer science, a ticket lock is a synchronization mechanism, or locking algorithm, that is a type of spinlock that uses 'tickets' to control which thread of execution is allowed to enter a critical section. In computer science, a ticket lock is a synchronization mechanism, or locking algorithm, that is a type of spinlock that uses 'tickets' to control which thread of execution is allowed to enter a critical section.