1. A computer-implemented task processing method, wherein the method comprises: selecting, for a task, an idle resource used for executing the task when an instruction that is for creating the task and that is delivered by a virtual instruction layer is received, wherein the idle resource comprises a pre-allocated private memory space, wherein the instruction comprises address information of a global variable and address information of a synchronization variable of the task; acquiring, according to the address information of the global variable, global variable status information corresponding to the address information of the global variable; creating a local global variable snapshot for the global variable according to the global variable status information; executing, in the pre-allocated private memory space in the selected idle resource, the task according to the local global variable snapshot; acquiring a new global variable snapshot corresponding to the global variable and acquiring an updated global variable according to the local global variable snapshot and the new global variable snapshot after the execution of the task is complete; and determining whether a synchronization variable of a to-be-executed task in a task synchronization waiting queue comprises the current updated global variable, and upon determining the synchronization variable of the to-be-executed task in the task synchronization waiting queue comprises the current updated global variable, putting the task into a task execution waiting queue, wherein the task synchronization waiting queue is a queue in which a task waiting for triggering of a synchronization variable is located, and after a synchronization variable of a task in the task synchronization waiting queue is triggered, the task is put into the task execution waiting queue to queue up for scheduling, and wherein the task execution waiting queue is a queue in which a task waiting for scheduling and execution is located.