The invention discloses a method and
system for
processing multi-thread data in sequence in
frequency regulation control, and relates to the technical field of
plant station integrated automation, and the method comprises the following steps: starting multiple threads to receive data of different data sources, defining a
data verification standard, designing a data
exception analysis mechanism, judging whether the data is normal data or not, and if yes, determining whether the data is normal data or not; a distributed
data control entity is created and initialized, a full check function is utilized to judge whether a data
storage area is currently full or not, normal data is input into the data
storage area, a monitoring thread is set, the state of a
mutual exclusion lock is checked, the state of the data
storage area is checked by an empty check function, and the input normal data is processed. The storage space occupied by the data unit is released after
processing. According to the method and the device, the problem that the instruction execution processes of a plurality of threads are interleaved due to one-
time switching among the threads in each
clock period when a multi-thread processor is used for
processing problems is solved.