The invention provides a mutual exclusion semaphore abnormal blocking auxiliary analysis method and system and a storage medium, and the method comprises the steps: 1, carrying out the lock operation of a corresponding mutual exclusion semaphore when a thread occupies a shared resource, recording wait information before the lock, and adding the wait information into a wait list; step 2, after the lock, recording lock information, and deleting wait information from the wait list at the same time; 3, after the shared resources are accessed, unlock operation is carried out on the semaphore, and then lock information is cleared; 4, each semaphore forms a table record, and the table records are recorded in a memory in real time and recorded in a flash at regular time; and 5, when an exception occurs, determining the semaphore and the code of the problem by checking the table record information. The method has the beneficial effects that the method is used for monitoring the abnormal blocking condition of the semaphore in real time, and meanwhile, problem points can be quickly positioned.