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

Method and device for dynamically allocating internal storage in online class system

A technology of dynamic allocation and memory, applied in the direction of memory address/allocation/relocation, multiprogramming device, etc., can solve problems such as affecting the normal work of threads, waste of memory, etc., to maintain efficiency and reliability, improve speed, solve The effect of wasting memory resources

Active Publication Date: 2015-03-25
SUZHOU CODYY NETWORK SCI & TECH
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When executing a task, the thread applies for the corresponding memory space. If the requested space is larger than the actual need, this will lead to memory waste; if the requested memory is too small, it will affect the normal work of the thread.

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 device for dynamically allocating internal storage in online class system
  • Method and device for dynamically allocating internal storage in online class system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0012] Such as figure 1 Shown is a flow chart of a method for dynamically allocating memory in an online classroom system according to a preferred embodiment of the present invention. Such as figure 1 As shown, the method for dynamically allocating memory in the online classroom system provided by the preferred embodiment of the present invention includes steps 101-104.

[0013] Step 101: the main thread creates a first preset number of sub-threads, and creates memory blocks with the same number as the sub-threads;

[0014] The created memory blocks are equal in size.

[0015] For example, the main thread creates a memory block of a corresponding size according to the resolution of the camera. Th...

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 provides a method and device for dynamically allocating an internal storage in an online class system. The method includes the following steps: a main thread establishes sub-threads with a first preset number and establishes internal storage blocks the same as the sub-threads in number; the main thread places the internal storage blocks into an internal storage queue, and the internal storage blocks in the internal storage queue are ranked according to the order of time stamps of the internal storage blocks, wherein the first position in the internal storage queue serves as the queue head, and the final position in the internal storage queue serves as the queue tail; the main thread allocates the internal storage block, at the queue tail position, in the internal queue to the sub-thread for executing reading operation; the main thread allocates the internal storage block, at the queue head position, in the internal storage queue to the sub-thread for executing writing operation.

Description

technical field [0001] The invention belongs to the field of memory allocation methods, in particular to a memory dynamic allocation method and equipment in an online classroom system. Background technique [0002] In the existing software development process, it is necessary to use multiple threads simultaneously to complete tasks quickly. In order to prevent a block of memory from being read and written at the same time caused by multi-threaded execution tasks, it is necessary to set blocking during the read and write process. However, when there are too many read and write threads, it will cause the blocking waiting time to be too long, which will affect the smoothness of the screen. [0003] The existing memory management mechanism mainly establishes a memory pool according to the statistics of memory usage, and divides the memory pool into memory blocks of the same size. When executing a task, the thread applies for the corresponding memory space. If the requested spa...

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): G06F12/02G06F9/46
Inventor 沈玉将董晓宏
Owner SUZHOU CODYY NETWORK SCI & TECH
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