CN1237447C - Method for clearing internal memory under disc operating system environment - Google Patents
Method for clearing internal memory under disc operating system environment Download PDFInfo
- Publication number
- CN1237447C CN1237447C CNB021578729A CN02157872A CN1237447C CN 1237447 C CN1237447 C CN 1237447C CN B021578729 A CNB021578729 A CN B021578729A CN 02157872 A CN02157872 A CN 02157872A CN 1237447 C CN1237447 C CN 1237447C
- Authority
- CN
- China
- Prior art keywords
- memory
- mcb
- dos
- operating system
- internal memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The present invention relates to a method for clearing memory under the environment of a disk operating system (DOS). When an information handling device works under the environment of the disk operating system (DOS), if the memory space is not enough to use, programs in the memory, which are temporarily not used, are cleared to provide enough memory space for the information handling device to use. The method comprises the steps of preserving a memory state and releasing the memory, and the present invention achieves the goal of clearing the memory by using the steps.
Description
Technical field
The present invention relates to a kind of method of removing internal memory, particularly a kind of method of removing internal memory under disc operating system (DOS) (DOS) environment can be applicable to the memory management of signal conditioning package.
Background technology
Internal memory is that signal conditioning package is used for the place of temporary transient stored routine and data, and in general, internal memory can be divided into ROM (read-only memory) (Read Only Memory; ROM) and random access memory (Random AccessMemory; RAM) two kinds, wherein the data of ROM (read-only memory) (ROM) can't appoint the user arbitrarily to change, normally deposit the ROM-BIOS (BIOS) of computer system, random access memory (RAM) then is the place that can place operating system, application program, and all programs all will be loaded on the execution that random access memory (RAM) just can be correct.
And random access memory (RAM), then control by CPU (central processing unit) (CPU), it is the main storage area of signal conditioning package, random access memory (RAM) can be from the source reading command of keyboard (Keyboard) or mouse and so on, help CPU (central processing unit) (CPU) that data (Data) are write the equally readable auxiliary memory of writing (Auxiliary Memory), so that still can take in the future, also can initiatively deliver to output unit to data, as: printer, display ... or the like, but random access memory (RAM) just belongs to temporary internal memory, because of data in the random access memory (RAM) and instruction can be replaced by new data, and after turning off power supply, the data of its storage and instruction also can disappear.
When signal conditioning package is worked under disc operating system (DOS) (DOS) environment, since in have the restriction of certain capacity, when in the internal memory during resident a lot of program, carry out the program of other committed memory again as this moment, then can surpass existing available memory space, and the caution of Out of Memory occurs, and with this EOP (end of program).
The existing method that solves is removed temporary transient no program from internal memory, the new procedures of memory headroom to required usefulness is provided, but existing mode shortcoming of various degrees all:
1. must reside in the internal memory as clear program itself, account for the space of conventional memory, increase the burden of signal conditioning package;
2. clear program self can't be withdrawn internal memory mostly, does not perhaps detect the function of self whether installing, and repeats to install and cause;
3. clear program will take or use the interrupt number of disc operating system (DOS) (DOS).
From the above mentioned, how effectively improving the shortcoming of prior art, and effectively reach the purpose of removing memory headroom, is a worth technical task of inquiring in fact.
Summary of the invention
In view of above prior art problems, the present invention proposes a kind of method of removing internal memory under disc operating system (DOS) (DOS) environment, its purpose is when signal conditioning package is worked under disc operating system (DOS) (DOS) environment, can obtain enough memory headrooms and come executive routine, the present invention includes the step of preserving internal storage state and releasing memory, wherein preserve last MCB (Memory Control Block that internal storage state includes interrupt vector table, conventional memory; MCB) address and exented memory specification (the Extended Memory Specification that last is available; XMS) handle, releasing memory step then include and discharge conventional memory and discharge exented memory specification (XMS), and utilize above-mentioned steps to reach the purpose of removing internal memory.
Specifically, the invention discloses a kind of method of removing internal memory under the disc operating system (DOS) environment, this method comprises:
Before a signal conditioning package is carried out a resident program, an interrupt vector table of this signal conditioning package is stored in a storage device;
The address of one MCB of this signal conditioning package is preserved;
One exented memory specification handle of this signal conditioning package is preserved;
Judge an active program in the conventional memory of this signal conditioning package, and after judgement is finished, recover this interrupt vector table; And
Address according to this MCB is discharged this conventional memory, according to this exented memory specification handle this exented memory specification is discharged simultaneously, with temporary transient no resident program in the internal memory of removing this signal conditioning package.
The described method of removing internal memory under the disc operating system (DOS) environment is wherein judged an active program in the conventional memory of this signal conditioning package, if be provided with two groups of these active programs in this conventional memory, then withdraws from this active program.
The described method of removing internal memory under the disc operating system (DOS) environment, wherein the address of this MCB is last this MCB (MCB) address of this conventional memory.
The described method of removing internal memory under the disc operating system (DOS) environment, wherein this exented memory specification handle is last this available exented memory specification handle of this signal conditioning package.
The described method of removing internal memory under the disc operating system (DOS) environment is wherein preserved the address of this MCB of this signal conditioning package, also comprises the following steps:
Carry out an interrupt step and obtain the address of this MCB; And
Judge the address of this MCB, and when the address of this MCB is last position, the address of preserving this MCB.
The described method of removing internal memory under the disc operating system (DOS) environment is wherein preserved this exented memory specification handle of this signal conditioning package, also includes to carry out an interrupt step.
The described method of removing internal memory under the disc operating system (DOS) environment, wherein the address according to this MCB is discharged this conventional memory, also is included in the step of seeking the address of this MCB in this internal memory.
The described method of removing internal memory under the disc operating system (DOS) environment is wherein discharged this exented memory specification according to this exented memory specification handle, also is included in the step of seeking this exented memory specification handle in this internal memory.
The described method of removing internal memory under the disc operating system (DOS) environment, wherein this storage device is a physical memory.
The described method of removing internal memory under the disc operating system (DOS) environment, wherein this storage device is a floppy disk.
The described method of removing internal memory under the disc operating system (DOS) environment, wherein this storage device is a hard disk.
About feature of the present invention and technology, conjunction with figs., most preferred embodiment are described in detail as follows.
Description of drawings
Fig. 1 removes the program flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention;
Fig. 2 removes storage MCB (MCB) the address process flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention;
Fig. 3 removes storage exented memory specification (XMS) the handle process flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention;
Fig. 4 removes the release conventional memory process flow diagram of the method for internal memory under magnetic 1 disk operating system (DOS) border for the present invention; And
Fig. 5 removes release exented memory specification (XMS) process flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention.
Description of reference numerals
Step 110 is preserved interrupt vector table
Step 120 is preserved the address of last MCB (MCB)
Step 130 is preserved last available exented memory specification (XMS) handle
Step 140 judges whether two parts of active programs are arranged in the internal memory
Step 150 withdraws from active program and recovers interrupt vector table
Step 160 is recovered interrupt vector table
Step 170 discharges conventional memory and discharges exented memory specification (XMS)
Step 510 is sought last available exented memory specification (XMS) handle of having preserved
Step 520 is discharged this available exented memory specification (XMS) handle
Embodiment
The present invention is a kind of method of removing internal memory under disc operating system (DOS) (DOS) environment, please refer to Fig. 1, and the present invention removes the program flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment.
When information processing apparatus places under disc operating system (DOS) (DOS) environment work, because conventional memory (640K) all has the restriction of capacity, so execution resident program (Terminate and Stay Resident; TSR) time, its resident program (TSR) usually can reside in the internal memory and occupy the space of internal memory, and to carry out resident program (TSR) preceding so information processing apparatus places, and preserves interrupt vector table (step 110) with storage device earlier, just with absolute position 00000
~The 00400H content of totally 1024 bytes is preserved, and this storage device can be physical memory (Physical Memory), floppy disk (FLOPPY DISK) or hard disk (Hard Disk), use internal memory to preserve the address (step 120) of last MCB (MCB) then and preserve last available exented memory specification (XMS) handle (step 130), like this then finished the step of preserving internal storage state, and signal conditioning package still continues to carry out other program.
When needs are removed resident program (TSR), signal conditioning package is then carried out the step of releasing memory, reach the purpose of removing memory headroom, at first need judge whether two parts of active programs (step 140) are arranged in the internal memory, as the 2nd part of active program (Command.com) arranged in the internal memory, then be unsuitable for releasing memory, need withdraw from active program earlier and recover interrupt vector table (step 150), and in the internal memory if having only 1 part of active program (Command.com), then directly recover interrupt vector table (step 160), and discharge conventional memory and discharge exented memory specification (XMS) (step 170) in recovering the back, like this then finished the work of removing internal memory.
Next do one with regard to the step of storage MCB of the present invention (MCB) address and describe in detail, please refer to Fig. 2, it removes storage MCB (MCB) the address process flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention.
At first carry out an interrupt step (INT21) and obtain the address (step 210) of MCB (MCB), and judge whether MCB (MCB) is last address (step 220), if this is the address of last MCB (MCB) of conventional memory, then preserve the address (step 230) of this MCB (MCB), if the address of this MCB (MCB) is not last address, then get back to step 210 and continue to carry out, finish preserve the address of last MCB (MCB) of conventional memory up to internal memory after.
Next do one with regard to the step of storage exented memory specification of the present invention (XMS) handle and describe in detail, please refer to Fig. 3, it removes storage exented memory specification (XMS) the handle process flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention.
At first carry out an interrupt step (step 310), obtain exented memory specification (XMS) handle then and preserve (step 320), the method of its preservation can be applied for an internal memory (capacity is 1K) with the function (No. 9 functions) of exented memory specification (XMS), again exented memory specification (XMS) handle is stored, and this exented memory specification (XMS) handle available exented memory specification (XMS) handle that is last.
Next do one with regard to the steps flow chart of release conventional memory of the present invention and describe in detail, please refer to Fig. 4, it removes the release conventional memory process flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention.
At first seek MCB (MCB) the pairing address (step 410) preserved, find the MCB that belongs to resident program (TSR) after, the address of MCB added 1 after, and be stored in extra section buffer (Extra Segment; ES), after calling out disc operating system (DOS) (DOS) function, then this MCB (MCB) can be discharged (step 420), and then seek next MCB (MCB), and discharged, up to all MCBs (MCB) are discharged fully, so promptly finished the release of conventional memory.
The steps flow chart of release exented memory specification of the present invention with that (XMS) is done a detailed explanation, please refer to Fig. 5, and it removes release exented memory specification (XMS) process flow diagram of the method for internal memory under disc operating system (DOS) (DOS) environment for the present invention.
At first seek last available exented memory specification (XMS) handle (step 510) of having preserved, then this available exented memory specification (XMS) handle is discharged (step 520), and seek next exented memory specification (XMS) handle, repeat above-mentioned steps, up to discharging all exented memory specifications (XMS) of having distributed.
When finish above-mentioned institute in steps after, temporary transient no resident program (TSR) then has been eliminated in the information place device's memory, has more abundant space in making and removes to carry out ensuing resident program (TSR).
Though the present invention is open with aforesaid preferred embodiment; right its is not that any those of ordinary skills are not breaking away from the spirit and scope of the invention in order to qualification the present invention; change and retouching when doing some, therefore scope of patent protection of the present invention is as the criterion with claim.
Claims (11)
1. method of removing internal memory under the disc operating system (DOS) environment is characterized in that this method comprises:
Before a signal conditioning package is carried out a resident program, an interrupt vector table of this signal conditioning package is stored in a storage device;
The address of one MCB of this signal conditioning package is preserved;
One exented memory specification handle of this signal conditioning package is preserved;
Judge an active program in the conventional memory of this signal conditioning package, and after judgement is finished, recover this interrupt vector table; And
Address according to this MCB is discharged this conventional memory, according to this exented memory specification handle this exented memory specification is discharged simultaneously, with temporary transient no this resident program in the internal memory of removing this this signal conditioning package.
2. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that, judges an active program in the conventional memory of this signal conditioning package, if be provided with two groups of these active programs in this conventional memory, then withdraws from this active program.
3. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that the address of this MCB is last this MCB address of this conventional memory.
4. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that this exented memory specification handle is last this available exented memory specification handle of this signal conditioning package.
5. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is wherein preserved the address of this MCB of this signal conditioning package, it is characterized in that, also comprises the following steps:
Carry out an interrupt step and obtain the address of this MCB; And
Judge the address of this MCB, and when the address of this MCB is last position, the address of preserving this MCB.
6. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that, this exented memory specification handle of this signal conditioning package is preserved, and also includes to carry out an interrupt step.
7. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that, according to the address of this MCB this conventional memory is discharged, and also is included in the step of seeking the address of this MCB in this internal memory.
8. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that, according to this exented memory specification handle this exented memory specification is discharged, and also is included in the step of seeking this exented memory specification handle in this internal memory.
9. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that this storage device is a physical memory.
10. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that this storage device is a floppy disk.
11. the method for removing internal memory under the disc operating system (DOS) environment as claimed in claim 1 is characterized in that this storage device is a hard disk.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021578729A CN1237447C (en) | 2002-12-23 | 2002-12-23 | Method for clearing internal memory under disc operating system environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021578729A CN1237447C (en) | 2002-12-23 | 2002-12-23 | Method for clearing internal memory under disc operating system environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1510571A CN1510571A (en) | 2004-07-07 |
CN1237447C true CN1237447C (en) | 2006-01-18 |
Family
ID=34236728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021578729A Expired - Fee Related CN1237447C (en) | 2002-12-23 | 2002-12-23 | Method for clearing internal memory under disc operating system environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1237447C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100478916C (en) * | 2004-09-24 | 2009-04-15 | 上海贝尔阿尔卡特股份有限公司 | Internal storage management system and method |
CN101175240B (en) * | 2007-11-26 | 2011-05-11 | ***通信集团福建有限公司 | Seamless switching method for sharing internal memory |
-
2002
- 2002-12-23 CN CNB021578729A patent/CN1237447C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1510571A (en) | 2004-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1261868C (en) | Method of rapid computer start-up | |
CN100346318C (en) | System and method for dynamically adjusting read ahead values based upon memory usage | |
CN1277211C (en) | Repair method for computer operation system | |
KR100734823B1 (en) | Method and apparatus for morphing memory compressed machines | |
CN1181435C (en) | Method and system to obtain optimum utility through resource recovery | |
CN1445667A (en) | Method for recovering and backing up information in hard disc of computer | |
CN1818869A (en) | Mirror starting optimization of built-in operation system | |
WO2017041570A1 (en) | Method and apparatus for writing data to cache | |
CN1815462A (en) | Method and apparatus for migrating data pages | |
CN1704903A (en) | Snapshot backup method | |
JP2007188499A (en) | Method and apparatus for reducing page replacement time in system using demand paging technique | |
CN101075196A (en) | Portable electronic device and method for loading resource data for the portable electronic device | |
CN1851677A (en) | Embedded processor system and its data operating method | |
CN1306419C (en) | A high-speed buffer and method for reading data from high-speed buffer and computation logic thereof | |
US8103849B2 (en) | Reducing memory usage of kernel memory management structures | |
CN1991776A (en) | Protection method for caching data of memory system | |
CN1912853A (en) | Method for managing cache and data processing system | |
CN1851676A (en) | Embedded system buffer internal memory distribution method | |
KR100494499B1 (en) | Data retouching method for executing file on real time and virus elimination method using the data retouching method thereof | |
CN1740981A (en) | A computer hardware data multi-timepoint fast storing and recovery method | |
CN1237447C (en) | Method for clearing internal memory under disc operating system environment | |
CN1845087A (en) | Interrupt handling method and interrupt handling apparatus | |
CN1866205A (en) | Smoothing updating method and apparatus for configuration information | |
KR100994723B1 (en) | selective suspend resume method of reducing initial driving time in system, and computer readable medium thereof | |
CN101075219A (en) | Method and system for processing interruption |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060118 Termination date: 20101223 |