Spinlock: This is the situation in which one or more processes are waiting for the LOCK to be released from the running process. Processes are in running as well as in waiting state.
ex: P1 and P2 are two processes. P1 is holding LOCK variable and executing if P2 comes for execution and wants LOCK, which is held by P1. This is spinlock.
Deadlock: This is the situation in which all processes are in waiting state in which processes are waiting for resources held by other processes.
Correct me if I am wrong.