Synchronization task processing method and device based on time slice scheduling

A task processing and time slice technology, applied in the computer field, can solve problems affecting system performance, thread number expansion, and increasing system overhead, etc., to achieve the effect of saving system resources and reducing system overhead

Active Publication Date: 2018-06-01
BEIJING QIHOO TECH CO LTD
View PDF7 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when using the above method to process synchronization tasks, the number of synchronization threads in the system corresponds to the number of master-slave relationships one by one. When the number of master-slave relationships in the system is lar

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
  • Synchronization task processing method and device based on time slice scheduling
  • Synchronization task processing method and device based on time slice scheduling
  • Synchronization task processing method and device based on time slice scheduling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0027] figure 1 A schematic flowchart of a method for processing a synchronization task based on time slice scheduling according to an embodiment of the present invention is shown. Such as figure 1 As shown, the method includes:

[0028] Step S110, generating a synchronization task according to a synchronization request sent by at least one slave node.

[0029] In a specific implementation process, whenever the master node recei...

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 synchronization task processing method and device based on time slice scheduling. The method includes the steps that a synchronization task is generated according to at leastone synchronization request sent by a slave node; the synchronization task is placed in a task queue; any idle thread in a thread pool acquires the synchronization task from the task queue and executes the synchronization task; whether or not the execution time of the synchronization task reaches the time specified by a preset time slice is determined, and if yes, the synchronization task is reset into the task queue. By adopting the scheme, the number of threads can be decoupled from the number of master-slave relationships, and a large amount of master-slave synchronization work in a systemcan be completed by the threads the number of which is lower than the number of master-slave synchronization relationships in the system, so that the system overhead is significantly reduced, and system resources are saved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for processing synchronous tasks based on time slice scheduling. Background technique [0002] The distributed system of the master-slave structure has become a commonly used database structure because of its high flexibility, high data reliability, low service node load, high data read and write efficiency, and the ability to achieve read and write separation. . [0003] In a distributed system with a master-slave structure, in order to realize the data synchronization of each master-slave node in the system, a separate synchronization thread is usually allocated for each master-slave relationship that has been established. The master node in each master-slave synchronization relationship passes the corresponding The synchronization thread sequentially sends synchronization data to the slave nodes, thereby realizing data synchronization between the...

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
IPC IPC(8): G06F17/30G06F9/50G06F9/48
CPCG06F9/4837G06F9/5083G06F16/2282G06F16/27
Inventor 王康
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products