The invention discloses a multi--core processor oriented on-
chip lock variable global addressing storage method and a device. The method comprises the following steps: 1, a global addressing on-
chip lock memory is established in advance; a lock variable is marked in the process of constructing an application, and the lock variable is allocated to an exclusive
address space during compiling and linking; 2, in the process of loading the application, the page in which the lock variable is allocated is transferred to the global addressing on-
chip lock memory through the DMA (
direct memory access) mode; an access request is arbitrated and added to an access
queue when the application accesses the lock variable, and the access request is executed according to the first-come-first-served strategy; the mapping of the lock variable is terminated when the application ends; and the device comprises a
memory bank and an access controller, wherein the
memory bank is arranged on a multi--core processor chip and used for storing the lock variable of the application, and the access controller is used for controlling the reading and modification towards the lock variable when the application runs. The multi--core processor oriented on-chip lock variable global addressing storage method and the device have the advantages that the concurrent access performance of the lock variable is high, the access
delay of the lock variable is low, the concurrent access overhead of the lock variable is low, and the storage method and the device are simple and convenient in use.