Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for dynamically adjusting number of threads based on distributed coordination system

A distributed coordination and dynamic adjustment technology, applied in the field of data processing, can solve problems such as abnormal classroom functions, inability of the system to flexibly expand the system, and inconsistencies

Pending Publication Date: 2021-09-14
上海轻轻信息科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, in order to improve the throughput of the system, the whiteboard message is usually processed by multi-thread / thread multiplexing. If the whiteboard message is processed by different threads, the whiteboard message sent first may be post-processed, and then in the There are inconsistencies in the restoration scene of the whiteboard message, causing abnormal classroom functions; at the same time, due to the randomness of sending out the whiteboard message in the room, the whiteboard message may not be sent for a long time, or the user may enter or leave the room at any time. Starting and maintaining this thread for a long time will cause a waste of system resources and cannot make full use of system resources. Due to memory constraints, the stack of a single thread occupies at least 512KB, which limits the total number of threads on a single machine. When a large number of concurrent access requests At this time, the system cannot flexibly expand the system, and the scheduling ability is insufficient. Therefore, in view of the above problems, it is urgent to design a method and system for dynamically adjusting the number of threads based on a distributed coordination system to meet the needs of actual use.

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
  • Method and system for dynamically adjusting number of threads based on distributed coordination system
  • Method and system for dynamically adjusting number of threads based on distributed coordination system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

[0040] It should be noted that the embodiments of the present invention and the features of the embodiments may be combined with each other under the condition of no conflict.

[0041] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but it is not intended to limit the present invention.

[0042] The present invention provides a method and system for dynamically adjusti...

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 thread number dynamic adjustment method and system based on a distributed coordination system, and belongs to the technical field of data processing, and the method comprises the steps: S1, receiving a whiteboard message of a room, and writing the whiteboard message into a cache corresponding to the room; S2, when it is judged that there is no thread for processing the whiteboard message of the same room at present, writing a flag bit into a first node instance of the distributed coordination system to send a trigger signal to a whiteboard message processor; S3, after the whiteboard message processor receives the trigger signal, creating a second node instance for sending the trigger signal to the long connection server, and starting a new thread to process the whiteboard message of the room. The technical scheme has the beneficial effects that the processing thread of the whiteboard message can be automatically created and destroyed based on the distributed coordination system, so fewer threads are reserved in the off-peak time period, the dynamic allocation and release of resources are realized, and the system resources are fully and reasonably utilized.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and system for dynamically adjusting the number of threads based on a distributed coordination system. Background technique [0002] The existing network teaching system usually includes teaching information providing terminal (teacher user terminal), teaching information receiving terminal (student user terminal), server (local server or background remote server), teaching equipment (electronic whiteboard, projection, etc.) and other equipment. Whiteboard messages in a single room are sent by terminals (including teacher user terminals and student user terminals). As the core business of teaching, whiteboard messages are particularly important for data consistency, and message loss and disorder are absolutely not allowed. [0003] In the online teaching scenario that maintains teachers and students, especially when meeting the needs of extra-curricular tutoring,...

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): G06F9/48G06F9/50
CPCG06F9/4806G06F9/5022
Inventor 许雅
Owner 上海轻轻信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products