CN101000606A - Data process system and method - Google Patents

Data process system and method Download PDF

Info

Publication number
CN101000606A
CN101000606A CN 200610001212 CN200610001212A CN101000606A CN 101000606 A CN101000606 A CN 101000606A CN 200610001212 CN200610001212 CN 200610001212 CN 200610001212 A CN200610001212 A CN 200610001212A CN 101000606 A CN101000606 A CN 101000606A
Authority
CN
China
Prior art keywords
data
node
database
status attribute
state
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.)
Granted
Application number
CN 200610001212
Other languages
Chinese (zh)
Other versions
CN100401299C (en
Inventor
邱全成
陈剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CNB2006100012127A priority Critical patent/CN100401299C/en
Publication of CN101000606A publication Critical patent/CN101000606A/en
Application granted granted Critical
Publication of CN100401299C publication Critical patent/CN100401299C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data process system comprises setting module, timing module, labeling module, process module and detecting module. It is featured as labeling attribute for each data, avoiding data right-executing operation to carry out treatment on the other data according to compatibility of preset attribute compatible table so that said system can ensure reliability of data process when said system and the other operation program are executed simultaneously.

Description

Data handling system and method
Technical field
The invention relates to a kind of data processing technique, particularly about a kind of data handling system and the method that can carry out simultaneously with other job procedure and can guarantee data transmission and renewal reliability.
Background technology
Electronic product development so far, digitizing, handheld electronic apparatus rely on strong functions, shirtsleeve operation and plurality of advantages such as are convenient for carrying, and become a big main flow of present electronic product, the modern can enjoy the facility that electronic product brings in daily life.In addition, in modern information society, computing machine has become popular contact, deal with data most important platform.Therefore, electronic equipment and computer interactive data are present trend of the times and development focus.
Handheld electronic apparatus with synchronizing function can be realized the data sync and the information sharing of electronic equipment and intercomputer, and both being kept perfectly property of data and unitarity, the quality of synchronizing function are to weigh the important pointer of electronic equipment performance.
For guaranteeing the reliability of data sync, other job procedure can not carry out data execution operation in synchronizing process, therefore, the data synchronization process of existing electronic equipment and intercomputer need stop other job procedure of this electronic equipment, carries out the synchronization job of the database of electronic equipment and computing machine then.Specifically be that the data that will upgrade (comprising newly-increased and change) in the database of computing machine download to electronic equipment, and data updated in the database of electronic equipment is uploaded to computing machine.Yet, because data no longer are confined to lteral data now, more comprise the multi-medium datas such as sound, image of big data quantity, thereby whole synchronous transmission process need expends considerable time, this moment, the user can not carry out other operation, can only wait for patiently that synchronizing process finishes.Be to lose time so for the user; For electronic equipment, owing to only carry out the synchronization job program, thereby the utilization factor of CPU (central processing unit) (CPU) is not high yet.
For this reason, how a kind of data handling system and the method that can carry out simultaneously with other job procedure is provided, and can guarantees data transmission and reliability of updating, improve the utilization factor of CPU (central processing unit), save the activity duration, become the important topic that needs to be resolved hurrily at present.
Summary of the invention
For overcoming the disappearance of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of data handling system and method, can carry out simultaneously with other job procedure, and can guarantee data transmission and reliability of updating.
Another object of the present invention is to provide a kind of data handling system and method, make full use of the resource of electronic equipment CPU (central processing unit), can improve the utilization factor of CPU (central processing unit), and can save the activity duration.
A further object of the present invention is to provide a kind of data handling system and method, is applied in the synchronization job of electronic equipment, strengthens the synchronizing function of electronic equipment, promotes the performance of electronic equipment.
For reaching above-mentioned and other purpose, the invention provides a kind of data handling system and method, the database of electronic equipment with CPU (central processing unit) (CPU) is carried out data transmission and renewal.This data handling system comprises: setting module, and set the compatibility of the status attribute of data operation in this database, and set up corresponding attribute compatibility table; Timing module comprises a timer, exports a trigger pip when this timer timing is overflowed; Indicate module, after the trigger pip that receives this timing module output, discern and be in the data of job state in this database and indicate its status attribute; Processing module reads the status attribute after each data indicates via this sign module, and according to the compatibility of this attribute compatibility table, transmits and upgrade meeting compatible data in this database; And detection module, whether the user mode that detects the CPU (central processing unit) of this electronic equipment is in busy condition, if and this processing module is in the execution that executing state is then interrupted this processing module, if not and this processing module be in the execution that interruption status is then recovered this processing module.
This data handling system is applied in the synchronization job of this electronic equipment; Each data formation one in this database has the tree structure database of a plurality of node datas; This status attribute comprises shared read states, monopolizes the state of writing, purpose is shared read states and purpose is monopolized the state of writing; In addition, if the status attribute of a node data is denoted as shared read states, then the status attribute of the upper layer node data of this node should be denoted as the shared read states of purpose; If the status attribute of a node data is denoted as the state of writing of monopolizing, then the status attribute of the upper layer node data of this node should be denoted as purpose and monopolize the state of writing.
This data processing method comprises the following steps: that (1) set the compatibility of the status attribute of data operation in this database, and sets up corresponding attribute compatibility table; (2) start a timer, when this timer timing is overflowed, export a trigger pip; (3) after receiving this trigger pip, discern and be in the data of job state in this database and indicate its status attribute; (4) read the status attribute of each data after indicating, and, transmit and upgrade meeting compatible data in this database according to the compatibility of this attribute compatibility table; (5) whether the user mode that detects the CPU (central processing unit) of this electronic equipment is in busy condition, if then enter step (6), then enters step (7) if not; (6) judge whether this step (4) is in executing state,, then continue execution in step (5) if not if then interrupt the execution of this step (4); And (7) judge whether this step (4) is in interruption status, if then recover the execution of this step (4), then continues execution in step (5) if not.
Data handling system of the present invention and method are in data processing operation, each data are indicated status attribute, and the compatibility of foundation one predefined attribute compatibility table, avoid carrying out the data of operation, other data are handled, therefore, this data handling system and method can be carried out simultaneously with other job procedure, can guarantee the reliability of data processing.Simultaneously, because data processing operation is just to carry out when CPU (central processing unit) is in idle condition, therefore, this data handling system and method have made full use of the CPU (central processing unit) resource, have improved the utilization factor of CPU (central processing unit), have also saved the activity duration.In addition, this data handling system and method comprise the timer of an interval one special time log-on data processing operation, and therefore, data processing operation can operate in the inside of electronic equipment automatically.
Description of drawings
Fig. 1 is the detailed system framework block schematic diagram of data handling system of the present invention;
Fig. 2 A is the embodiment synoptic diagram of the tree structure database of an electronic equipment; And
Fig. 2 B is the embodiment synoptic diagram of the attribute compatibility table of data handling system of the present invention.
Fig. 3 is the detailed process synoptic diagram of data processing method of the present invention
Embodiment
Embodiment
Fig. 1 is a block schematic diagram, shows the detailed system framework of data handling system of the present invention.
As shown in Figure 1, data handling system 1 of the present invention is that the database in the electronic equipment 2 with CPU (central processing unit) (CPU) 21 20 is carried out data transmission and renewal.In the present embodiment, this data handling system 1 is applied in the synchronization job of this electronic equipment 2, and this synchronization job is meant that this electronic equipment and an intercomputer carry out data interaction (comprising data upload and download).Each data formation one of this database 20 has the tree structure database of a plurality of node datas, sees also Fig. 2 A, and it is the embodiment synoptic diagram of a tree structure database.As shown in the figure, this tree structure database 20 comprises four node layer data, and wherein, node 210,211,212 is with the node layer data; Node 220,221,222 is with the node layer data, and node 220 is the upper layer node data of node 210,211,212; Node 230,231,232 is with the node layer data, and node 230 is the upper layer node data of node 220,221,222; And node 240 is the upper layer node data of node 230,231,232.
See also Fig. 1, data handling system 1 of the present invention comprises: setting module 10, timing module 11, sign module 12, processing module 13 and detection module 14.
This setting module 10 is compatibility of set condition attribute, and sets up corresponding attribute compatibility table 100, and wherein, this status attribute is meant the job state of data in this database 20.See also Fig. 2 B, it is the embodiment synoptic diagram of the attribute compatibility table of data handling system of the present invention.As shown in the figure, this status attribute comprises shared read states (S) 101, monopolizes the state of writing (X) 102, purpose is shared read states (IS) 103 and purpose is monopolized the state of writing (IX) 104, and the compatibility between each status attribute comprises compatibility (True) 110 and incompatible (False) 111.
This timing module 11 comprises a timer, when this timer timing is overflowed, exports a trigger pip.This timer data sync operation of a special time (overflowing the time of timer) startup electronic equipment at interval just.Wherein, this timer can be one to have the timer of the time of fixedly overflowing; Also can be one to have the adjustable timer that overflows the time, and this adjustable time of overflowing can be preestablished by the user.
This indicates module 12, after the trigger pip that receives these timing module 11 outputs, discerns and is in the data of job state in this database 20 and indicates its status attribute.In the present embodiment, if the status attribute of a node data is denoted as shared read states, then the status attribute of the upper layer node data of this node should be denoted as the shared read states of purpose; If the status attribute of a node data is denoted as the state of writing of monopolizing, then the status attribute of the upper layer node data of this node should be denoted as purpose and monopolize the state of writing.For example, if node data 210 is in the state of writing (other job procedure is done the homework to it) at present, then its status attribute is denoted as the state of writing 102 of monopolizing, and 220,230 and 240 of the upper layer node data of this node data 210 are denoted as purpose and monopolize the state of writing 104; In addition, if the node data 221 current read states (other job procedure is pronounced industry to it) that are in, then its status attribute should be denoted as and share read states 101, and the upper layer node data 230 of this node data 221 and 240 are denoted as purpose and share read states 103.
This processing module 13 reads the status attribute of each data, and according to the compatibility of this attribute compatibility table 100, transmits and upgrade meeting compatible data in this database 20.The status attribute of each data that is indicated with above-mentioned sign module 12 is an example, node data 211 does not indicate status attribute, synchronization job can be pronounced industry (for example these data 211 being uploaded to computing machine from this electronic equipment) to it, also can do the homework (for example will in the computing machine data that should data 211 being downloaded to this electronic equipment), because the status attribute of this node data 211 was denoted as shared read states 101 or monopolized the state of writing 102 this moment, its upper layer node 220 is denoted as the shared read states 103 of purpose or purpose is monopolized the state of writing 104, according to the compatibility of attribute compatibility table 100, itself and this upper layer node 220 current state attributes (purpose is monopolized the state of writing) are compatible; Synchronization job can not be pronounced industry or does the homework node data 210, because its current state attribute (monopolizing the state of writing) and shared read states (synchronous pronounce industry) or it is inconsistent monopolizing the state of writing (synchronous does the homework); Synchronization job can be pronounced industry to node data 221, but can not do the homework, because its current state attribute (sharing read states) is compatible with shared read states, but be inconsistent with monopolizing the state of writing; Synchronization job can not be pronounced industry or does the homework node data 220, because its current state attribute (purpose is monopolized the state of writing) and shared read states or it is incompatible monopolizing the state of writing.In sum, this processing module 13 can be avoided being carried out the node data 210 of doing the homework and the upper layer node data 220,230 and 240 related with it by other job procedure, can carry out bi-directional synchronization operation (just data upload and download) to node data 211,212,222,231 and 232, simultaneously also can be to node data 221 fill order to synchronization job (data upload just), therefore, in data handling procedure, synchronization job and other operation can not influence each other, and can guarantee data transmission and reliability of updating in the synchronizing process.
This detection module 14, be whether the user mode that detects the CPU (central processing unit) 21 of this electronic equipment 2 is in busy condition, if and this processing module 13 is in the execution that executing state is then interrupted this processing module 13, if not and this processing module be in the execution that interruption status is then recovered this processing module 13.Just if electronic equipment can stop to carry out synchronization job when carrying out other job procedure that need expend the CPU (central processing unit) resource in a large number, can not recover to carry out synchronization job if electronic equipment is carried out when other does not need to expend in a large number the job procedure of CPU (central processing unit) resource or does not carry out any job procedure, make full use of the CPU (central processing unit) resource thus.
Corresponding above-mentioned data handling system the invention provides a kind of data processing method.See also Fig. 3, it is a flow process synoptic diagram, shows the detailed process step of data processing method of the present invention.This method is that the database to the electronic equipment with CPU (central processing unit) (CPU) carries out data transmission and renewal.In the present embodiment, this data processing method is applied in the synchronization job of this electronic equipment, and this synchronization job is meant the data interaction (comprising data upload and download) between this electronic equipment and the computing machine.Each data of this database are tree structure databases that formation one has a plurality of node datas.This method is execution in step S201 and step S205 at first.
In step S201, set the compatibility of the status attribute of data operation in this database, and set up corresponding attribute compatibility table.Wherein, this status attribute is meant the job state of data in this database, comprises shared read states, monopolizes the state of writing, purpose shares read states and purpose is monopolized the state of writing.Then enter step S202.
In step S202, start a timer, when overflowing, this timer timing exports a trigger pip.Wherein, this timer is the data sync operation of a special time (overflowing the time of timer) startup electronic equipment at interval, it can be one to have the timer of the time of fixedly overflowing, also can be one to have the adjustable timer that overflows the time, and this adjustable time of overflowing can be preestablished by the user.Then enter step S203.
In step S203, receive this trigger pip, discern and be in the data of job state in this database and indicate its status attribute.Wherein, if the status attribute of a node data is denoted as shared read states, then the status attribute of the upper layer node data of this node should be denoted as the shared read states of purpose; If the status attribute of a node data is denoted as the state of writing of monopolizing, then the status attribute of the upper layer node data of this node should be denoted as purpose and monopolize the state of writing.Then enter step S204.
In step S204, read the status attribute of each data, and, transmit and upgrade meeting compatible data in this database according to the compatibility of this attribute compatibility table.In the present embodiment, after each data synchronization operation finished, return step S202, restart this timer.
In step S205, whether the user mode that detects the CPU (central processing unit) of this electronic equipment is in busy condition, if then enter step S206, then enters step S207 if not.
In step S206, whether determining step S204 is in executing state to meeting compatible data in this database, if execution in step S208 then interrupts meeting in the database of this step S204 the execution of compatibility data; Then continue execution in step S205 if not.In the present embodiment, this step S206 and S208 are meant when this CPU (central processing unit) is in busy condition and synchronization job and is in executing state, stop to carry out this synchronization job.
In step S207, whether that judges this step S204 is in interruption status to meeting compatible data in this database, if execution in step S209 then, the execution that recovers to meet in the database of this step S204 compatibility data; Then continue execution in step S205 if not.In the present embodiment, this step S207 and S209 are meant when this CPU (central processing unit) is in idle condition and synchronization job and is in interruption status, recover to carry out this synchronization job.
In sum, data handling system of the present invention and method to the data processing dispersing and disintegrating of database to each data in the database are handled, it is in data processing operation, each data are indicated status attribute, and the compatibility of foundation one predefined attribute compatibility table, avoid carrying out the data of operation, other data are transmitted and upgraded, therefore, data handling system of the present invention and method can be carried out simultaneously with other job procedure, and can guarantee the reliability of data processing.Simultaneously, because data processing operation is just to carry out when CPU (central processing unit) is in idle condition, therefore, this data handling system and method have made full use of the CPU (central processing unit) resource, have improved the utilization factor of CPU (central processing unit), have also saved the activity duration.In addition, this data handling system and method comprise the timer of an interval one special time log-on data processing operation, and therefore, this data processing operation can operate in the inside of this electronic equipment automatically.
Compared with prior art, data handling system of the present invention and method can be applicable to electronics and establish In the standby synchronization job, the user also can carry out other operation procedure when synchronization job, because Preestablished compatibility, synchronization job and other operation can be not mutual in data handling procedure Impact. Therefore, the present invention can strengthen the synchronizing function of electronic equipment, the lifting electronic equipment Performance.

Claims (10)

1. data handling system is carried out data transmission and renewal to the database of electronic equipment with CPU (central processing unit), it is characterized in that this data handling system comprises:
Setting module is set the compatibility of the status attribute of data operation in this database, and sets up corresponding attribute compatibility table;
Timing module comprises a timer, exports a trigger pip when this timer timing is overflowed;
Indicate module, after the trigger pip that receives this timing module output, discern and be in the data of job state in this database and indicate its status attribute;
Processing module reads the status attribute after each data indicates via this sign module, and according to the compatibility of this attribute compatibility table, transmits and upgrade meeting compatible data in this database; And
Detection module, whether the user mode that detects the CPU (central processing unit) of this electronic equipment is in busy condition, if and this processing module is in the execution that executing state is then interrupted this processing module, if not and this processing module be in the execution that interruption status is then recovered this processing module.
2. data handling system as claimed in claim 1 is characterized in that this data handling system is applied in the synchronization job of this electronic equipment.
3. data handling system as claimed in claim 1 is characterized in that, each data formation one in this database has the tree structure database of a plurality of node datas.
4. data handling system as claimed in claim 1 is characterized in that, this status attribute comprises shared read states, monopolizes the state of writing, purpose is shared read states and purpose is monopolized the state of writing.
5. data handling system as claimed in claim 4 is characterized in that, if the status attribute of a node data is denoted as shared read states, then the status attribute of the upper layer node data of this node should be denoted as the shared read states of purpose; If the status attribute of a node data is denoted as the state of writing of monopolizing, then the status attribute of the upper layer node data of this node should be denoted as purpose and monopolize the state of writing.
6. data processing method is carried out data transmission and renewal to the database of electronic equipment with CPU (central processing unit) (CPU), it is characterized in that this data processing method comprises the steps:
(1) sets the compatibility of the status attribute of data operation in this database, and set up corresponding attribute compatibility table;
(2) start a timer, when this timer timing is overflowed, export a trigger pip;
(3) after receiving this trigger pip, discern and be in the data of job state in this database and indicate its status attribute;
(4) read the status attribute of each data after indicating, and, transmit and upgrade meeting compatible data in this database according to the compatibility of this attribute compatibility table;
(5) whether the user mode that detects the CPU (central processing unit) of this electronic equipment is in busy condition, if then enter step (6), then enters step (7) if not;
(6) judge whether this step (4) is in executing state,, then continue execution in step (5) if not if then interrupt the execution of this step (4); And
(7) judge whether this step (4) is in interruption status,, then continue execution in step (5) if not if then recover the execution of this step (4).
7. data processing method as claimed in claim 6 is characterized in that this data processing method is applied in the synchronization job of this electronic equipment.
8. data processing method as claimed in claim 6 is characterized in that, each data formation one in this database has the tree structure database of a plurality of node datas.
9. data processing method as claimed in claim 6 is characterized in that, this status attribute comprises shared read states, monopolizes the state of writing, purpose is shared read states and purpose is monopolized the state of writing.
10. data processing method as claimed in claim 9 is characterized in that, if the status attribute of a node data is denoted as shared read states, then the status attribute of the upper layer node data of this node should be denoted as the shared read states of purpose; If the status attribute of a node data is denoted as the state of writing of monopolizing, then the status attribute of the upper layer node data of this node should be denoted as purpose and monopolize the state of writing.
CNB2006100012127A 2006-01-10 2006-01-10 Data process system and method Expired - Fee Related CN100401299C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100012127A CN100401299C (en) 2006-01-10 2006-01-10 Data process system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100012127A CN100401299C (en) 2006-01-10 2006-01-10 Data process system and method

Publications (2)

Publication Number Publication Date
CN101000606A true CN101000606A (en) 2007-07-18
CN100401299C CN100401299C (en) 2008-07-09

Family

ID=38692583

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100012127A Expired - Fee Related CN100401299C (en) 2006-01-10 2006-01-10 Data process system and method

Country Status (1)

Country Link
CN (1) CN100401299C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324656A (en) * 2012-03-22 2013-09-25 乐金信世股份有限公司 Database management method and database management server thereof
CN109299132A (en) * 2018-11-29 2019-02-01 中国人民财产保险股份有限公司 SQL data processing method, system and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1151644C (en) * 2000-05-25 2004-05-26 深圳市中兴通讯股份有限公司 Full duplex asynchronous serial communication method and its communication system
JP4467257B2 (en) * 2002-06-28 2010-05-26 株式会社日立製作所 Database management method and apparatus, and processing program therefor
KR100462839B1 (en) * 2002-12-24 2004-12-23 한국전자통신연구원 Method for database synchronization and conflict resolution between clients and server of mobile system
CN101134413A (en) * 2006-08-28 2008-03-05 国际文具制造厂有限公司 Circular shape clamp mechanism

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324656A (en) * 2012-03-22 2013-09-25 乐金信世股份有限公司 Database management method and database management server thereof
CN103324656B (en) * 2012-03-22 2018-09-25 乐金信世股份有限公司 Data base management method and its Database Administration Server
CN109299132A (en) * 2018-11-29 2019-02-01 中国人民财产保险股份有限公司 SQL data processing method, system and electronic equipment
CN109299132B (en) * 2018-11-29 2021-08-06 中国人民财产保险股份有限公司 SQL data processing method and system and electronic equipment

Also Published As

Publication number Publication date
CN100401299C (en) 2008-07-09

Similar Documents

Publication Publication Date Title
CN102999385B (en) Multiprocessor cooperative processing method in computing equipment
CN111142711B (en) Firmware configuration method and device, storage medium and mobile terminal
CN103338290A (en) A method for automatically testing performance of an Android handset
CN109299088A (en) Mass data storage means, device, storage medium and electronic equipment
CN101083818A (en) Terminal operation method and user terminal
WO2016184058A1 (en) Terminal exception recovery method and terminal
CN105530377B (en) It is a kind of to wake up the processing method locked, apparatus and system
CN107608693A (en) version upgrading method and terminal device
CN101872191B (en) Process task scheduling method and device for production line equipment
CN114564435A (en) Inter-core communication method, device and medium for heterogeneous multi-core chip
CN100401299C (en) Data process system and method
CN103957258A (en) Trans-regional data communication method and system
CN104679583B (en) A kind of method and device of dynamic adjustment clock interrupt
CN214225796U (en) Time synchronization circuit
CN110543259A (en) Fingerprint unlocking method of display device and display device
CN102866873A (en) Method for detecting state of seat with computer
CN103294627A (en) Method and system for transmitting data and electronic apparatus using the method
CN103561458A (en) Method and system for synchronizing data to Bluetooth watch
CN103002436A (en) Upgrade method and device of terminal device with android platform
CN102819474A (en) Test method and device for system operation
CN100386751C (en) USB device automatic initialization method and device
CN107241365A (en) A kind of cloud platform method for synchronizing time
CN114237851A (en) Timed task execution method, timed task execution device, timed task execution equipment and timed task execution storage medium
CN101650649A (en) System and method for viewing help file
CN112859660B (en) Equipment synchronization control method, device, terminal and system

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: 20080709

Termination date: 20120110