1. A computer-implemented task processing method, wherein the method comprises: selecting, for a first task, an idle resource used for executing the first task when an instruction for creating the first task is received at a virtual machine from a virtual instruction layer, wherein the idle resource comprises a pre-allocated private memory space of a memory module of a task execution container node of the virtual machine, and wherein the instruction comprises address information of a global variable and address information of a synchronization variable of the first task; acquiring, according to the address information of the global variable, global variable status information corresponding to the address information of the global variable, wherein the global variable status information includes a creation time 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 first task according to the local global variable snapshot; acquiring a new global variable snapshot corresponding to the global variable; acquiring a current updated global variable according to the local global variable snapshot and the new global variable snapshot after the execution of the first task is complete; determining whether a synchronization variable of a to-be-executed task in a task synchronization waiting queue comprises the current updated global variable; and moving the to-be-executed task from the task synchronization waiting queue into a task execution waiting queue based on determining the synchronization variable of the to-be-executed task in the task synchronization waiting queue comprises the current updated global variable, wherein the task synchronization waiting queue is a queue in which the to-be-executed task is located until the synchronization variable of the to-be-executed task is triggered, and after the synchronization variable of the to-be-executed task in the task synchronization waiting queue is triggered, the to-be-executed task is put into the task execution waiting queue to queue up for scheduling, wherein the triggering is based on determining the synchronization variable of the to-be-executed task in the task synchronization waiting queue comprises the current updated global variable, and wherein the task execution waiting queue is a queue in which a task waiting for scheduling and execution is located.