Task processing method and virtual machine

    公开(公告)号:US09996401B2

    公开(公告)日:2018-06-12

    申请号:US14738436

    申请日:2015-06-12

    CPC classification number: G06F9/52 G06F9/455 G06F9/45558 G06F2009/45583

    Abstract: A task processing method and virtual machine are disclosed. The method includes selecting an idle resource for a task; creating a global variable snapshot for a global variable; executing the task, in private memory space in the selected idle resource; after the execution of the task is complete, acquiring a new global variable snapshot corresponding to the global variable, and acquiring an updated global variable according to a local global variable snapshot and the new global variable snapshot; and determining whether a synchronization variable of a to-be-executed task in a task synchronization waiting queue includes the current updated global variable, and if the synchronization variable of the to-be-executed task in the task synchronization waiting queue includes the current updated global variable, putting the task into a task execution waiting queue.

    Task Processing Method and Virtual Machine
    2.
    发明申请
    Task Processing Method and Virtual Machine 有权
    任务处理方法和虚拟机

    公开(公告)号:US20150277993A1

    公开(公告)日:2015-10-01

    申请号:US14738436

    申请日:2015-06-12

    CPC classification number: G06F9/52 G06F9/455 G06F9/45558 G06F2009/45583

    Abstract: A task processing method and virtual machine are disclosed. The method includes selecting an idle resource for a task; creating a global variable snapshot for a global variable; executing the task, in private memory space in the selected idle resource; after the execution of the task is complete, acquiring a new global variable snapshot corresponding to the global variable, and acquiring an updated global variable according to a local global variable snapshot and the new global variable snapshot; and determining whether a synchronization variable of a to-be-executed task in a task synchronization waiting queue includes the current updated global variable, and if the synchronization variable of the to-be-executed task in the task synchronization waiting queue includes the current updated global variable, putting the task into a task execution waiting queue.

    Abstract translation: 公开了一种任务处理方法和虚拟机。 该方法包括为任务选择空闲资源; 为全局变量创建全局变量快照; 在所选择的空闲资源中的专用存储器空间中执行该任务; 在执行任务完成后,获取与全局变量相对应的新的全局变量快照,并根据本地全局变量快照和新的全局变量快照获取更新的全局变量; 并且确定任务同步等待队列中的待执行任务的同步变量是否包括当前更新的全局变量,并且如果任务同步等待队列中待执行任务的同步变量包括当前更新的全局变量 全局变量,将任务放入任务执行等待队列中。

Patent Agency Ranking