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

Method for executing disk read-write under multi-thread

A multi-threading, disk technology, applied in the direction of multi-programming devices, etc., can solve the problems of reduced processing performance, idle multiple threads, etc., to avoid the effect of processing performance

Inactive Publication Date: 2010-02-17
INVENTEC CORP
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the amount of reads and writes to the disk is not large, multiple threads that process commands for disk reads and writes will be idle instead.
Since the operating system will include these idle threads when performing multi-thread switching, when it is the turn of the waiting thread, such as the thread corresponding to the mouse command, many idle disk read and write threads have been switched, which will cause processing efficiency instead. reduce
[0004] Therefore, how to perform disk reading and writing under multi-threading without reducing processing performance due to idle disk reading and writing threads has become a very important issue.

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 for executing disk read-write under multi-thread
  • Method for executing disk read-write under multi-thread

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The following will clearly illustrate the spirit of the present invention with the accompanying drawings and detailed descriptions. After any person skilled in the art understands the preferred embodiments of the present invention, they can be changed and modified by the techniques taught in the present invention. depart from the spirit and scope of the present invention.

[0017] In order to effectively solve the problem in the prior art that when multithreading is used to perform disk reading and writing, there are too many idle disk reading and writing threads passing through during switching, which instead causes low system performance. When writing commands, dynamically generate or eliminate disk read and write threads according to different read and write volumes, so that the multi-threads in the operating system are kept as threads to be processed as much as possible, so as to improve the processing efficiency of the processor.

[0018] refer to figure 1 , which...

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 relates to a method for executing disk read-write under multi-thread. The method comprises the following steps: providing a number of commands to be processed in a read-write command waiting queue; providing a number of expecting disk read-write threads corresponding to the number of the commands to be processed; and comparing the number of the expecting disk read-write threads withthe number of the prior disk read-write threads so as to determine whether a disk read-write thread is increased or deleted.

Description

technical field [0001] The invention relates to a method for disk reading and writing, in particular to a method for performing disk reading and writing under multithreading. Background technique [0002] Multi-threading is a method used by an operating system to improve system processing performance. Since each command to be processed is processed by a thread, these different threads can be sent to the processor for processing. When a certain type of pending event is being processed for a long time, the operating system can switch to the thread execution of other types of events. Alternatively, the operating system can switch between multiple threads within a very short time interval, so as to process multiple event commands within a certain period of time, so as to improve system processing performance. [0003] In the prior art, multiple threads are also used to process pending commands for disk read and write, so as to improve disk access performance. However, when 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46
Inventor 陈志伟卢晓芬
Owner INVENTEC CORP