Unlock instant, AI-driven research and patent intelligence for your innovation.

Actor model-based task scheduling method and device

A task scheduling and actor technology, applied in the video field, can solve the problems of state isolation and lock grabbing.

Active Publication Date: 2021-04-06
SHANGHAI BILIBILI TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, an Actor model-based task scheduling method, device, computer equipment, and computer-readable storage medium are now provided to solve the problem that the existing task scheduling system solves the problem of mutually exclusive access to critical resources through distributed locks. There may be problems of grabbing locks and inability to achieve state isolation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Actor model-based task scheduling method and device
  • Actor model-based task scheduling method and device
  • Actor model-based task scheduling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The advantages of the present application will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0044] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0045] The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a task scheduling method and device based on an Actor model. The method comprises the steps: after a current task is triggered, initializing the current task, and after initialization is completed, modifying the state of the current task into a to-be-run state; sending the to-be-operated state to a first Actor in the form of a first message; judging whether the current task is in a ready state or not through the first Actor according to the first message, and when it is judged that the current task is in the ready state, sending the ready state to the second Actor in the form of a second message; determining an execution node for executing the current task through the second Actor according to the second message, modifying the state of the current task into a distributed state, and sending the distributed state to a third Actor in the form of a third message; and sending the current task to the execution node through the third Actor according to the third message so as to execute the current task through the execution node. According to the invention, task scheduling can be realized without the help of a lock.

Description

technical field [0001] The present application relates to the field of video technology, in particular to a task scheduling method and device based on an Actor model. Background technique [0002] When the existing task scheduling system performs task scheduling, it often falls into a deadlock due to concurrent access to a critical resource by multiple threads or processes. At this time, the critical resource can be locked to establish a link between threads or processes Mutual exclusion synchronization mechanism to ensure the integrity and consistency of critical resources. There are many mutual exclusion schemes available for stand-alone process synchronization and thread synchronization, such as mutexes, semaphores, and condition variables. However, these mutual exclusion schemes under a single machine cannot be used on multiple machines, because the components of the distributed system run on different machines, so that they are not in a unified operating environment. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50G06F9/52
CPCG06F9/5027G06F9/522
Inventor 韩志华赵孔明
Owner SHANGHAI BILIBILI TECH CO LTD