Polling method suitable for password card asynchronous interface, proxy and medium

The invention provides a polling method suitable for a password card asynchronous interface, an agent and a medium, and the method comprises the following steps: step 1, when a wake-up notification is received, a polling thread quits a blocking state; step 2, acquiring a counting semaphore, entering...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LI DINGZHAN, PENG JINHUI, LEI ZONGHUA, LIAO ZHENGYUN, XU XIAOBING
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a polling method suitable for a password card asynchronous interface, an agent and a medium, and the method comprises the following steps: step 1, when a wake-up notification is received, a polling thread quits a blocking state; step 2, acquiring a counting semaphore, entering a blocking state again when the counting semaphore is zero, and otherwise, subtracting a pre-subtracted number from the counting semaphore; 3, querying the number of the operation result data packets in the receiving memory, if the number is zero, adding the pre-subtraction number to the counting semaphore, and if the number is not zero, continuing to execute the step 4; 4, comparing the number of the operation result data packets with the pre-subtraction number, when the number of the operation result data packets is equal to the pre-subtraction number, reading the operation result data from the receiving memory for processing, and returning to execute the step 2; otherwise, reading the operation result data from