In this blog post, you’ll learn more about the Sybase Error All threads are blocked and the reason for receiving this error
Sybase SQL Error Message
All threads are blocked
Reason for this Error
You attempted to read or write a row and it is locked by another user. Also, all other threads (see the -gn server option) are blocked waiting for a lock to be released. This is a deadlock situation and your transaction has been chosen as the one to rollback.