CN103645958A - Concurrent processing method - Google Patents
Concurrent processing method Download PDFInfo
- Publication number
- CN103645958A CN103645958A CN201310744278.5A CN201310744278A CN103645958A CN 103645958 A CN103645958 A CN 103645958A CN 201310744278 A CN201310744278 A CN 201310744278A CN 103645958 A CN103645958 A CN 103645958A
- Authority
- CN
- China
- Prior art keywords
- mishap
- processing method
- concurrent processing
- thread
- events
- 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.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention relates to a concurrent processing method for concurrently processing events. The concurrent processing method comprises the following steps: 1, dividing the events into a plurality of small events; 2, respectively establishing threading objects for the plurality of small events; 3, setting a distribution load corresponding to each small event on a network according to the threading object of each small event; 4, starting the threading objects of the plurality of small events, and processing the threading objects of the small events through distribution load alternative processing or synchronous threading processing by using a coordination method. The concurrent processing method provided by the invention follows a 'coordination method', synchronism, security and accuracy of information are maintained, along with the development of a Web2.0 technique, the complex business of a company can be executed in tie and space distribution during different periods and roles under a frame and control of realized business procedures. By adopting the concurrent processing method, the system operation speed can be greatly increased and the energy consumption of a servo is reduced.
Description
Technical field
The present invention relates to a kind of computing machine and process the method for event, be specifically related to a kind of concurrent processing method.
Background technology
Concurrent, in operating system, refer in the time period, have several programs all in start run to operation complete between, and these programs are all to move on same processor, but in any moment point, only have a program to move on processor; Concurrently refer to that two or more events occur in interval at one time, under multiprogramming environment, concurrency refers to has a plurality of programs to move at the same time within a period of time in macroscopic view, but in single processor system, each constantly but only can have one program to carry out, thus on microcosmic these programs can only be timesharing alternately carry out.In prior art, in the process of concurrent processing, tend to clash, or synchronism, security and the accuracy of the information that maintains of concurrent processing cannot be protected.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of concurrent processing method, can guarantee synchronism, security and the accuracy of the information that maintains, the speed of raising system greatly operation and reduce server resource consumption.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of concurrent processing method, and concurrent processing event, comprises the following steps,
Step 1, is divided into a plurality of mishaps by event;
Step 2, for a plurality of mishaps create respectively thread object;
Step 3 is provided with a distribution load corresponding with it according to the thread object of each mishap on network;
Step 4, starts the thread object of a plurality of mishaps, according to the method according to planning as a whole by distributing load alternate treatment or synchronizing thread to process the thread object in mishap.
On the basis of technique scheme, the present invention can also do following improvement.
Further, in above-mentioned steps four, the data sharing after the mishap that distribution load is processed is stored in storer.
Further, when distributing load to handle after the thread object of a mishap, discharge the buffer memory of its thread object.
Further, after discharging the thread object of mishap, distribute its execution result of load record, and for distributing new thread between another hour, so that described new thread continues to process another mishap according to the execution result of mishap.
Further, event being divided into after a plurality of mishaps, is the pre-setting priority of each mishap, and the sequencing that the priority of described mishap and overall planning method are processed matches.
The invention has the beneficial effects as follows: a kind of concurrent processing method of the present invention is followed " overall planning method ", processes at one time a plurality of events.It occurs in two or many computing machines and jointly shares in the distributed computing system that same program or calculation task process, can maintain synchronism, security and the accuracy of information, be accompanied by the development of Web2.0 technology, in enterprise, a complicated business has realized under the framework and control of operation flow, and coordination different phase, different role are organized work under the angle of time and allocation of space.The speed of the employing raising system greatly operation of a kind of concurrent processing method of the present invention and reduce server resource consumption.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of concurrent processing method of the present invention.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, a kind of concurrent processing method, concurrent processing event, comprises the following steps,
First, event is divided into a plurality of mishaps; Then, for a plurality of mishaps create respectively thread object; Be connected on, for each mishap arranges distribution load: be provided with a distribution load corresponding with it according to the thread object of each mishap on network; Finally, distribute load alternate treatment or synchronizing thread to process the thread object in mishap: to start the thread object of a plurality of mishaps, according to the method according to planning as a whole, pass through to distribute load alternate treatment or synchronizing thread to process the thread object in mishap.
In a kind of concurrent processing method of the present invention, the data sharing after the mishap that distribution load is processed is stored in storer; When distributing load to handle after the thread object of a mishap, discharge the buffer memory of its thread object; After discharging the thread object of mishap, distribute its execution result of load record, and for distributing new thread between another hour, so that described new thread continues to process another mishap according to the execution result of mishap; Event is divided into after a plurality of mishaps, is the pre-setting priority of each mishap, and the sequencing that the priority of described mishap and overall planning method are processed matches.
A kind of concurrent processing method of the present invention is followed " overall planning method ", processes at one time a plurality of events.It occurs in two or many computing machines and jointly shares in the distributed computing system that same program or calculation task process, can maintain synchronism, security and the accuracy of information, be accompanied by the development of Web2.0 technology, in enterprise, a complicated business has realized under the framework and control of operation flow, and coordination different phase, different role are organized work under the angle of time and allocation of space; The speed of the employing raising system greatly operation of a kind of concurrent processing method of the present invention and reduce server resource consumption.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (5)
1. a concurrent processing method, concurrent processing event, is characterized in that: comprises the following steps,
Step 1, is divided into a plurality of mishaps by event;
Step 2, for a plurality of mishaps create respectively thread object;
Step 3 is provided with a distribution load corresponding with it according to the thread object of each mishap on network;
Step 4, starts the thread object of a plurality of mishaps, according to the method according to planning as a whole by distributing load alternate treatment or synchronizing thread to process the thread object in mishap.
2. a kind of concurrent processing method according to claim 1, is characterized in that: in above-mentioned steps four, the data sharing after the mishap that distribution load is processed is stored in storer.
3. a kind of concurrent processing method according to claim 1 and 2, is characterized in that: when distributing load to handle after the thread object of a mishap, discharge the buffer memory of its thread object.
4. a kind of concurrent processing method according to claim 3, it is characterized in that: after discharging the thread object of mishap, distribute its execution result of load record, and distribute new thread between another hour, so that described new thread continues to process another mishap according to the execution result of mishap.
5. according to a kind of concurrent processing method described in claim 1 or 2 or 4, it is characterized in that: event is divided into after a plurality of mishaps, is the pre-setting priority of each mishap, the sequencing that the priority of described mishap and overall planning method are processed matches.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310744278.5A CN103645958A (en) | 2013-12-30 | 2013-12-30 | Concurrent processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310744278.5A CN103645958A (en) | 2013-12-30 | 2013-12-30 | Concurrent processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103645958A true CN103645958A (en) | 2014-03-19 |
Family
ID=50251179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310744278.5A Pending CN103645958A (en) | 2013-12-30 | 2013-12-30 | Concurrent processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103645958A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110860086A (en) * | 2019-11-08 | 2020-03-06 | 武汉微派网络科技有限公司 | Data processing method, readable storage medium and electronic device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102088398A (en) * | 2009-12-08 | 2011-06-08 | 华为技术有限公司 | World wide web (WEB) concurrent event processing method and device |
US20120254759A1 (en) * | 2011-03-31 | 2012-10-04 | Greenberg David S | Browser-based recording of content |
-
2013
- 2013-12-30 CN CN201310744278.5A patent/CN103645958A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102088398A (en) * | 2009-12-08 | 2011-06-08 | 华为技术有限公司 | World wide web (WEB) concurrent event processing method and device |
US20120254759A1 (en) * | 2011-03-31 | 2012-10-04 | Greenberg David S | Browser-based recording of content |
Non-Patent Citations (3)
Title |
---|
刘家红等: "一个基于事件驱动的面向服务计算平台", 《计算机学报》, vol. 31, no. 4, 15 April 2008 (2008-04-15) * |
罗海南: "多阶段事件驱动架构性能调优机制的研究", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 11, 15 November 2009 (2009-11-15) * |
罗海南等: "支持服务优先级的多阶段服务模型研究", 《计算机应用研究》, vol. 26, no. 9, 15 September 2009 (2009-09-15) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110860086A (en) * | 2019-11-08 | 2020-03-06 | 武汉微派网络科技有限公司 | Data processing method, readable storage medium and electronic device |
CN110860086B (en) * | 2019-11-08 | 2023-08-15 | 武汉微派网络科技有限公司 | Data processing method, readable storage medium, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3167368B1 (en) | Dynamic shard allocation adjustment | |
US11003489B2 (en) | Cause exception message broadcast between processing cores of a GPU in response to indication of exception event | |
CN106502791B (en) | A kind of method for allocating tasks and device | |
US9063790B2 (en) | System and method for performing distributed parallel processing tasks in a spot market | |
CN104866374A (en) | Multi-task-based discrete event parallel simulation and time synchronization method | |
CN106662995B (en) | Device, method, system, medium and the equipment seized for providing intermediate thread | |
US20160048415A1 (en) | Systems and Methods for Auto-Scaling a Big Data System | |
CN103294533A (en) | Task flow control method and task flow control system | |
CN105095327A (en) | Distributed ELT system and scheduling method | |
CN102890643A (en) | Resource scheduling system based on immediate feedback of application effect under display card virtualization | |
CN102591709B (en) | Shapefile master-slave type parallel writing method based on OGR (open geospatial rule) | |
CN103634379A (en) | Management method for distributed storage space and distributed storage system | |
CN101833438A (en) | General data processing method based on multiple parallel | |
US11169495B2 (en) | Methods for provisioning an industrial internet-of-things control framework of dynamic multi-cloud events and devices thereof | |
CN102681894A (en) | Method and system for multitask concurrent scheduling | |
CN110716802A (en) | Cross-cluster task scheduling system and method | |
CN104391990A (en) | Multi-task type collecting and harvesting method based on vertical industry | |
KR20130080663A (en) | Method and apparatus for graphic processing using multi-threading | |
CN103077068A (en) | Realizing method for shared memory based high-performance simulation system | |
US8505020B2 (en) | Computer workload migration using processor pooling | |
CN103645958A (en) | Concurrent processing method | |
KR102124897B1 (en) | Distributed Messaging System and Method for Dynamic Partitioning in Distributed Messaging System | |
CN111160810A (en) | Workflow-based high-performance distributed spatial analysis task scheduling method and system | |
WO2023280208A1 (en) | Data processing method, execution workstation, electronic device, and storage medium | |
Liu et al. | BSPCloud: A hybrid distributed-memory and shared-memory programming model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140319 |