CN105224333B - Big machine object code rapid generation and system - Google Patents

Big machine object code rapid generation and system Download PDF

Info

Publication number
CN105224333B
CN105224333B CN201510673746.3A CN201510673746A CN105224333B CN 105224333 B CN105224333 B CN 105224333B CN 201510673746 A CN201510673746 A CN 201510673746A CN 105224333 B CN105224333 B CN 105224333B
Authority
CN
China
Prior art keywords
object code
code generator
host source
source program
program
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.)
Active
Application number
CN201510673746.3A
Other languages
Chinese (zh)
Other versions
CN105224333A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201510673746.3A priority Critical patent/CN105224333B/en
Publication of CN105224333A publication Critical patent/CN105224333A/en
Application granted granted Critical
Publication of CN105224333B publication Critical patent/CN105224333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of big machine object code rapid generation and system, the method includes:Pending host source image is obtained from user terminal;According to pending host source image and parameter is divided, pending host source program is divided into multiple subsets;Untreated subset to idle Object Code Generator device is distributed to respond;The host source program that the untreated subset of distribution includes is compiled as object code by the Object Code Generator device.The each batch end of run time that the present invention can solve fixed batch generation object code is unequal, causes Object Code Generator total runtime long, the low problem of the level of resources utilization.

Description

Big machine object code rapid generation and system
Technical field
The present invention relates to the technical field of computer digital animation more particularly to a kind of big machine object code sides of quickly generating Method and system, realize host object code dynamic, in batches, parallel generation.
Background technology
Since mainframe has powerful data-handling capacity, the transaction processing system of current each big bank is based on greatly Type host is run, and with the continuous improvement of major Bank Informatization degree, the function of sorts of systems is more and more abundant, complexity It is higher and higher, in order to support the correct operation of sorts of systems, need to write a large amount of mainframe program.However because for safety Property, the reasons such as trackability consider that bank's host object code building is all uniformly processed.In order to improve new business function Efficiency of research and development, it is a critically important aspect to promote host object code building efficiency.Serial process generates host object code The requirement for the treatment of effeciency is cannot be satisfied, therefore it is more by certain regular partition that existing each bank, which all uses host source program, Then a batch runs multiple batches and generates object code parallel.
But the technology that bank runs parallel at present, the division principle of batch is all relatively-stationary, such as:According to industry Service type (a gold business, ebanking services etc.) divides, and this dividing mode is once it is determined that later, each Object Code Generator is handled It is divided into fixed batch all in accordance with the principle, and Object Code Generator is carried out to the batch after division.Fixed disassembly principle There are prodigious defects, can not often accomplish, to the adaptive of host source program quantity to be treated, to be unable to control each batch It is secondary processing source program population size, cause actual division come out each batch source program quantity it is unbalanced, on this basis into The end time of capable parallel Object Code Generator, each batch has successively, on the one hand causes the idling-resource of system can not be effective It utilizes, treatment effeciency is low;On the other hand also cause the Object Code Generator time longer, it is normal to seriously affect transaction processing system Operation.Meanwhile when fixed partition batch processed needs to adjust its batch division principle, risk is often very high, and engineering is real It is also bigger to apply cost.
Invention content
A kind of big machine object code quick-speed generation system provided by the invention and method generate target to solve fixed batch The each batch end of run time of code is unequal, causes Object Code Generator total runtime long, the level of resources utilization Low problem.
To solve the above-mentioned problems, the present invention provides a kind of big machine object code rapid generation, the method includes:
Pending host source image is obtained from user terminal;
According to pending host source image and parameter is divided, pending host source program is divided into multiple sons Collection;
Untreated subset to idle Object Code Generator device is distributed to respond;
The host source program that the untreated subset of distribution includes is compiled as object code by the Object Code Generator device.
Further, the host source image includes the Program Type of host source program and affiliated baseline.
Further, according to pending host source image and division parameter, pending host source program is drawn It is divided into multiple subsets to further comprise:
Preliminary classification is carried out to the pending host source program according to the Program Type of host source program;
Subseries again is carried out to the host source program of preliminary classification according to the affiliated baseline of host source program;
The pending host source program of every class is respectively divided into multiple subsets according to parameter is divided;
Wherein, the master of host source program maximum tolerance time and this kind of Program Type that parameter is each Program Type are divided Machine source program average handling time is divided by the value of rounding.
Further, untreated subset to idle Object Code Generator device response is distributed to further comprise:
The operating status of monitoring objective code generator is the free time when having detected Object Code Generator device operating status When, submit processing application;
Untreated subset is judged whether there is, if so, being then randomly assigned untreated subset according to processing application It is responded to corresponding Object Code Generator device, or according to priority according to the priority of the processing application and the host source program Untreated subset to corresponding Object Code Generator device is distributed to respond;
Download the host source program that the untreated subset of distribution includes.
Further, this method further includes:
It monitors Object Code Generator device operating condition in real time, when there is Object Code Generator device to occur abnormal, sends and close The instruction of abnormal object code generator sends exception information to error recovery device to abnormal object code generator;
The processing state for the host source program that the error recovery device is just handling abnormal object code generator is initial Untreated state is turned to, sends warning message to system manager.
The present invention separately provides a kind of big machine object code quick-speed generation system, which includes user terminal and object code Generate server;
The user terminal receives the pending host source program of user registration;
The Object Code Generator server includes:Information acquisition device, distributor and task run device;
Described information acquisition device obtains pending host source image from the user terminal;
The distributor is according to pending host source image and divides parameter by pending host source program Multiple subsets are divided into, untreated subset to idle Object Code Generator device is distributed and responds;
Task run device includes multiple Object Code Generator devices, and the Object Code Generator device is by the untreated of distribution The host source program that subset includes is compiled as object code.
Further, the host source image includes the Program Type of host source program and affiliated baseline.
Further, the distributor includes the first taxon, the second taxon and subset division unit,
First taxon is used for the Program Type according to host source program to the pending host source program Carry out preliminary classification;
Second taxon be used for according to the affiliated baseline of host source program to the host source program of preliminary classification into Capable subseries again;
The subset division unit is used to be respectively divided into the pending host source program of every class according to division parameter more A subset;
Wherein, the master of host source program maximum tolerance time and this kind of Program Type that parameter is each Program Type are divided Machine source program average handling time is divided by the value of rounding.
Further, the task run device further includes monitoring modular and download module,
The monitoring modular is used for the state of monitoring objective code generator, is run when having detected Object Code Generator device When state is idle, submit processing application to distributor;
The host source program that the untreated subset that the download module is used to distribute from user terminal downloads includes;
The distributor further includes distribution module, and the distribution module is for judging whether there is untreated subset, such as Fruit has, then being randomly assigned untreated subset to corresponding Object Code Generator device according to processing application responds, or according to The priority of the processing application and the host source program according to priority distributes untreated subset to corresponding object code Generator responds.
Further, the Object Code Generator server further includes monitoring device and error recovery device;
The monitoring device connects the Object Code Generator device in the task run device, real time monitoring object code life The operating condition grown up to be a useful person sends the instruction for closing abnormal object code generator when there is Object Code Generator device to occur abnormal To abnormal object code generator, exception information is sent to error recovery device;
The processing state for the host source program that the error recovery device is just handling abnormal object code generator is initial Untreated state is turned to, sends warning message to system manager.
Big machine object code rapid generation provided by the invention and system can carry out intelligent batch and draw as needed Point, the treatment effeciency of Object Code Generator is mentioned optimal, achievees the purpose that quickly generate host object code, while can take into account Offer needs priority target code building function.In addition, the present invention has fairly perfect Fault recovery processing unit, improves and be The reliability and maintainability of system.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without having to pay creative labor, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of big machine object code rapid generation flow chart of one embodiment of the invention;
Fig. 2 is the flow chart of the dividing subset process of one embodiment of the invention;
Fig. 3 is the flow chart of the untreated subset process of distribution of one embodiment of the invention;
Fig. 4 is that a kind of big machine object code quick-speed generation system of one embodiment of the invention constitutes figure;
Fig. 5 is the composition figure of the Object Code Generator server of one embodiment of the invention;
Fig. 6 is the composition figure of the Object Code Generator server of one embodiment of the invention;
Fig. 7 is the composition figure of the Object Code Generator server of one embodiment of the invention.
Specific implementation mode
In order to which the technical characterstic and effect that make the present invention are more obvious, technical scheme of the present invention is done below in conjunction with the accompanying drawings It further illustrates, the specific example that the present invention also can have other different is illustrated or implements, any those skilled in the art The equivalents done within the scope of the claims belong to the protection category of the present invention.
The present invention provides a kind of big machine object code rapid generation, as shown in Figure 1, this method includes:
Step S1:Pending host source image is obtained from user terminal;
It is detailed, user terminal receive user (research staff) register need the host source program of Object Code Generator with And Object Code Generator needs relevant information to be used.Host source image includes:The Program Type of host source program and institute Belong to baseline, in other embodiments of the invention, host source image further includes the information such as program name.
Step S2:According to pending host source image and parameter is divided, pending host source program is divided For multiple subsets;
It is detailed, as shown in Fig. 2, according to pending host source image and dividing parameter by pending host source Procedure division is that multiple subsets further comprise:
Step S21:Preliminary classification is carried out to the pending host source program according to the Program Type of host source program;
Step S22:Subseries again is carried out to the host source program of preliminary classification according to the affiliated baseline of host source program;
Step S23:It will be respectively divided into multiple subsets per class host source program according to parameter is divided;
Wherein, the master of host source program maximum tolerance time and this kind of Program Type that parameter is each Program Type are divided Machine source program average handling time is divided by the value of rounding.
The present invention why need according to the baseline of host source program to the host source program of preliminary classification again into Row classification needs first download host source code to local server when being because of host source program Object Code Generator, and downloads master Machine source code is carried out as unit of baseline, the host source program for belonging to same baseline is handled together, it is possible to reduce baseline The number of download.
Step S3:Untreated subset to idle Object Code Generator device is distributed to respond;
It is detailed, it is further wrapped as shown in figure 3, distributing untreated subset to idle Object Code Generator device response It includes:
Step S31:The operating status of monitoring objective code generator, if there are idle generators, if so, then entering Step S32, if it is not, continuing to monitor;
Step S32:When it is idle to have detected at least one Object Code Generator device operating status, task processing is submitted Application;
Step S33:Untreated subset is judged whether there is, if fruit has, enters step S34, if not untreated Subset then waits for and repeats the processing application of submission task after a certain period of time;
Step S34:Untreated subset to corresponding Object Code Generator device is randomly assigned according to processing application to ring It answers, or untreated subset is according to priority distributed to corresponding according to the priority of the processing application and the host source program Object Code Generator device responds.
Step S35:Download the host source program that the untreated subset of distribution includes.
Step S4:The host source program that the untreated subset of distribution includes is compiled as mesh by the Object Code Generator device Mark code.
In one embodiment of the invention, big machine object code rapid generation includes perfect recovery treatment measures, specifically For:It monitors Object Code Generator device operating condition in real time, when there is Object Code Generator device to occur abnormal, sends and close abnormal mesh The instruction of code generator is marked to abnormal object code generator, sends exception information to error recovery device.
The processing state initialization for the host source program that error recovery device is just handling abnormal Object Code Generator device For untreated state, warning message is sent to system manager.
Task run device can also receive user instructions, at any time newly-increased and delete target code generator, delete mesh When marking code generator, if task normally executes, system can prompt user and be deleted again after waiting for task execution; If task execution exception occurs or without task execution, allow to delete.
Big machine object code rapid generation provided by the invention can carry out intelligent batch division as needed, will The treatment effeciency of Object Code Generator is mentioned optimal, achievees the purpose that quickly generate host object code, while can take into account offer Need priority target code building function.In addition, the present invention there are fairly perfect Fault recovery treatment measures, system is improved Reliability and maintainability.
The present invention separately provides a kind of big machine object code quick-speed generation system, as shown in figure 4, the system includes:User is whole End 10 and Object Code Generator server 20.The user terminal receives the pending host source program of user registration.Such as Fig. 5 Shown, the Object Code Generator server includes:Information acquisition device 21, distributor 22 and task run device 23.
Described information acquisition device 21 obtains pending host source image from the user terminal 10, wherein institute State the Program Type and affiliated baseline that host source image includes host source program.The distributor 22 is according to pending Pending host source program is divided into multiple subsets by host source image and division parameter, distributes untreated subset extremely Idle Object Code Generator device response.Task run device 23 includes multiple Object Code Generator devices, the object code life It grows up to be a useful person and the host source program that the untreated subset of distribution includes is compiled as object code.
Further, as shown in fig. 6, the distributor 22 includes the first taxon 221, the second taxon 222 And subset division unit 223,
First taxon 221 is used for the Program Type according to host source program to the pending host source journey Sequence carries out preliminary classification;Second taxon 222 is used for the master to preliminary classification according to the affiliated baseline of host source program Machine source program carries out subseries again;The subset division unit 223 is used for will be per class host source program difference according to division parameter It is divided into multiple subsets;
Wherein, the master of host source program maximum tolerance time and this kind of Program Type that parameter is each Program Type are divided Machine source program average handling time is divided by the value of rounding.
Further, the task run device 23 further includes monitoring modular 232 and download module 233, the monitoring mould Block is used for the state of monitoring objective code generator, when it is idle to have detected Object Code Generator device operating status, submits Processing is applied to distributor;The host source journey that the untreated subset that the download module is distributed from user terminal downloads includes Sequence.
Distributor further includes distribution module, and the distribution module is used to judge whether there is untreated subset, if so, It is then randomly assigned untreated subset to corresponding Object Code Generator device according to processing application to respond, or according to the place The priority of reason application and the host source program according to priority distributes untreated subset to corresponding Object Code Generator device Response.In untreated host source program processing procedure, the record of priority processing reaches if necessary, it is only necessary to will need preferential The record of processing dividing subset in the same manner is preferentially supplied to task run device to handle.
Further, as shown in fig. 7, the Object Code Generator server further includes monitoring device 24 and Fault recovery dress Set 25;
The monitoring device 24 connects the Object Code Generator device in the task run device, monitors object code in real time The operating condition of generator sends the finger for closing abnormal object code generator when there is Object Code Generator device operation exception It enables to abnormal object code generator, sends exception information to error recovery device 25.
The processing shape for the host source program that the error recovery device is just handling the Object Code Generator device of environmental abnormality State is initialized as untreated state, sends warning message to system manager.
Big machine object code quick-speed generation system provided by the invention can carry out intelligent batch division as needed, will The treatment effeciency of Object Code Generator is mentioned optimal, achievees the purpose that quickly generate host object code, while can take into account offer Need priority target code building function.In addition, the present invention has fairly perfect Fault recovery processing unit, system is improved Reliability and maintainability.
Technical key point of the present invention is illustrated with a specific embodiment below:
Step 1:User terminal receives the host source program and target for needing Object Code Generator of research staff's registration Code building needs relevant information to be used.
Step 2:Information acquisition device obtains pending host source image from user terminal, by host source program Information is registered in database and stores, one record of each host source program, and increases correlated condition word for every record Section and give relevant field assign initial value, for example, mode field includes:Generator name, processing state, handling result and daily record letter Breath, initial value are respectively " NONE ", " 00 ", " NONE " and " NONE ", wherein " generator name " is that " NONE " illustrates raw not yet It grows up to be a useful person and processes the record.The disposition of tracking host source program can be clearly recorded through the above way.
The record signal list stored in database is as shown in Table 1,
Table one:
It should be noted that " processing state " data dictionary has, " 00,01,02,03,04 ", concrete meaning is as follows:
00:Armed state, state description record pending, original state when generally recording newly-generated such as Or certain records are set to state waiting again after reception system maintenance personnel instruction and are handled again.
01:State is being handled, state description record is locked by an Object Code Generator device, and is being handled In.
02:Processed state, state description record have been disposed, and can handling result be returned to user terminal So that user inquires.
03:Suspended state when system None- identified is non-ambient problem, is set to when occurring mistake in record process The record of the state, the state will not be handled by other machines again, need to notify system maintenance personnel's manpower intervention specific at this time Error reason is analyzed, if it is confirmed that being environmental problem, then solves to reset to the waiting reprocessing of " 00 " state after environmental problem.
04:As a result state has been returned.After handling result returns to user terminal, it is set to the state.
" handling result " data dictionary has that " NONE, 00100,10100,10200 ", concrete meaning is as follows:
NONE:It is untreated or handling state, at this time without handling result.
00100:Record is handled successfully.
10100:Processing failure is recorded, system identification is non-ambient problem, such as since grammar issue leads to object code Generation reports an error.
10200:It records processing failure and is set to the state when system None- identified is non-ambient problem, with " processing state " " 03 " state it is corresponding.
The execution detailed log information of " log information " field general record processing failure or exception handles successfully one As without showing more detailed logging, when processing failure, specific Object Code Generator error information is filled in log information.
This system further includes scanning means, by " processing state " field of all records of scanning means periodic scanning, if In the presence of the record of " 02 " state, then " handling result " and " log information " is inquired back to user terminal for user.
Step 3:Distributor link information acquisition device according to pending host source image and divides parameter Pending host source program is divided into multiple subsets.
Wherein, it is to be pre-stored within the data of distributor to divide parameter, indicates that each Program Type carries out dividing subset When record quantity, below by taking table two as an example, the computational methods of illustrated divisions parameter:
Table two:
The table includes " Program Type ", " average handling time (second) ", " maximum tolerance time (second) " and " control ginseng Four fields of number ", record quantity " dividing parameter "=" maximum tolerance time (second) " of the dividing subset of each Program Type/ " average handling time (second) " (round numbers, decimal point then round up), wherein " average handling time (second) " is according to every A all history process records of Program Type are calculated, and regularly update in parameter list one;" maximum tolerance time (second) " is Parameter list one is set to by instruction by system manager, setting maximum tolerance time parameter main cause is:In target generation In code generating process, there are the Object Code Generator demands that certain comparisons are urgent, for example, needing the production patch journey gone into operation as early as possible If sequence is handled according to all records are once averagely allocated to Servers-all processing when needing priority target code building Record when reaching, due to not idle server, then can only wait for, if last consignment of data volume is bigger, it is possible to lead It causes the stand-by period long, is unable to reach the purpose of time-urgent target code building.After the maximum tolerance time is arranged, system is according to history Average handling time once at most handles how many a hosts when calculating the various Program Types of Object Code Generator server process Source program, it is ensured that after needing the record of priority target code building to reach, the time of waiting for the start Object Code Generator Less than the maximum tolerance time, Object Code Generator number of servers is more, and the time actually waited for is shorter.
The present invention uses Thread Pool Technology, is dynamically divided pending host source program according to " affiliated baseline " Then class is divided into multiple subsets, when pending host source program quantity is small according to " the dividing parameter " of each Program Type When " dividing parameter ", it is divided into independent subset.For example, when there is 100 host EGL source programs to need Object Code Generator, In 55 be to belong to baseline 1, remaining is baseline 2, and corresponding in parameter list " it is 10 to divide parameter ", then baseline 1 is divided into 6 sons Collection, the last one subset only have 5 records, and similar, baseline 2 is divided into 5 subsets, share 11 subset waitings and are handled.
Step 4:The operating status of monitoring module monitors Object Code Generator device in task run device, when detecting When to have Object Code Generator device operating status be idle, submit application processing to distributor.
Step 5:It is the son of " 00 " whether to have processing state in distribution module Test database record in distributor Collection, if so, the Object Code Generator device for then distributing untreated subset to processing of filing an application by priority level responds.In this Meanwhile each state in task run device modification data-base recording, for example, " generating the subset corresponding record of distribution Device name " field is revised as the Object Code Generator device name of application processing, is revised as " processing state " " 01 (processing) ".It connects It, the host source program that the untreated subset that the download module of task run device is distributed from user terminal downloads includes.
Step 6:The host source program that the untreated subset of distribution includes is compiled as by corresponding Object Code Generator device Object code.Then according to the correlated condition in compiling results modification data-base recording, such as:
If one, handling result success, is set to " 00100 ", " log information " is set to " object code by " handling result " Generate successfully ", " processing state " be set to " 02 ".
If two, handling result fails, and it is non-ambient problem, then " handling result " is set to " 10100 ", " daily record letter Breath " fills in specific Object Code Generator error information, " processing state " is set to " 02 ".
If three, handling result fails, and can not judge environmental problem, then " handling result " is set to " 10200 ", " day Will information " fills in specific Object Code Generator execution journal, " processing state " is set to " 03 ".
Step 7:Four are repeated the above steps to step 6, until the host source program processing that all untreated subsets include Until complete.
Further, Object Code Generator server further includes monitoring device and error recovery device, and monitoring device is used for The operating condition for monitoring Object Code Generator device in real time sends when there is Object Code Generator device to occur abnormal and closes abnormal mesh The instruction of code generator is marked to abnormal object code generator, sends exception information to error recovery device.
Specifically, the operating condition of Object Code Generator device is obtained by inspection " Object Code Generator device Running Status Table " It arrives, after finding Object Code Generator device operation exception, notice task run device closes the generator, and exception information is provided To error recovery device.
As shown in Table 3, " Object Code Generator device Running Status Table " includes " Object Code Generator device title ", " registered letter Breath " and " Object Code Generator device state ", example illustrate table as follows:
Table three:
Object Code Generator device title Register information Object Code Generator device state
Object Code Generator device A 1 Normally
Object Code Generator device A 1 Normally
Object Code Generator device A 0 It has deleted
Monitoring device requires the Object Code Generator device that all " Object Code Generator device states " is " normal " to be needed every n seconds " register information " of " Object Code Generator device Running Status Table " is set to " 1 (normal operation) ", every m (m>N) second traverses Full table then judges that the Object Code Generator device is transported if it find that it is " 0 (unregistered) " to have Object Code Generator device " register information " Row exception or delay machine, if it is not, " register information " to be set to " 0 (unregistered) ".It was found that operation exception or delay machine Object Code Generator device needs that task run device is notified to close (deletion) the Object Code Generator device, then by " object code Generator state " is set to " deletion ", and is supplied to error recovery device to restore the server Object Code Generator device title The record handled enables record to be handled again by other normal servers.
Monitoring device can also receive user instructions, by " Object Code Generator device state " be the record of " deletion " again It is set to " normal ", and task run device is notified to open (newly-increased) the Object Code Generator device.
At the beginning of the processing state for the host source program that the error recovery device is just handling abnormal Object Code Generator device Beginning turns to untreated state, sends warning message to system manager.In another specific embodiment of the present invention, the exception includes Environmental abnormality, non-ambient exception and None- identified are abnormal.When system identification is environmental problem, abnormal object code building is closed Device, after environmental problem solution, host source program that error recovery device is just handling the Object Code Generator device of environmental abnormality Processing state initialization be untreated state, distribute other Object Code Generator device processing target code compilations by distributor Task.When realization, it is only necessary to which " processing state " in recording the host source program of the subset is revised as " 00 ".
When system identification is non-ambient problem, such as since grammar issue causes Object Code Generator to report an error, by mistake Accidentally recovery device sends warning message to system manager, is processed again after waiting system administrator processing.In this case, will " handling result " in the host source program record of the subset is set to " 10100 ", " log information " fills in specific object code Generation error information, " processing state " are set to " 02 ",
When system None- identified is non-ambient problem, processed host source program is no longer by other machines in this case Device processing, the warning message of error recovery device transmission at this time are specifically divided to system manager by system maintenance personnel manpower intervention Analyse error reason.In this case, " handling result " in the host source program of the subset being recorded is set to " 10200 ", " daily record Information " fills in specific Object Code Generator execution journal, " processing state " is set to " 03 ".
Big machine object code rapid generation provided by the invention and system can carry out intelligent batch and draw as needed Point, the treatment effeciency of Object Code Generator is mentioned optimal, achievees the purpose that quickly generate host object code, while can take into account Offer needs priority target code building function.In addition, the present invention has fairly perfect Fault recovery processing unit, it can be not Object Code Generator server is arbitrarily increased and decreased in the case of withdrawing business, improves the reliability and maintainability of system.
The host object code rapid generation and system of the present invention, when solving by fixed batch target code building Treatment effeciency problem, improve the service efficiency of system resource, and then improve the experience of user.Specifically have following excellent Point:
One, it is identical according to control parameter to be divided into multiple quantity by the present invention for the host source program for needing Object Code Generator Subset, it is ensured that each processing Runtime is roughly equal, eliminates due to some task object code building time Longer problem, improves the service efficiency of server, and then improves the efficiency of system processing.
Two, the present invention is arranged using " maximum tolerance time ", and calculates record distribution automatically automatically according to processing history Control parameter, influence record quantity distribution improve the flexible of system so that it is guaranteed that needing the generation of priority target code Property.
The present invention possesses perfect server monitoring device and error recovery device, can occur in certain server abnormal Or ensure that system is correctly run when delay machine, improve the reliability of system.And it supports arbitrarily to increase in the case of continuous service Delete target code building server is summed it up, the maintainability of system is improved.
The above is only used to illustrate the technical scheme of the present invention, any those of ordinary skill in the art can without prejudice to Under the spirit and scope of the present invention, modifications and changes are made to the above embodiments.Therefore, the scope of the present invention should regard Subject to right.

Claims (6)

1. a kind of big machine object code rapid generation, which is characterized in that the method includes:
Pending host source image is obtained from user terminal, wherein the host source image includes host source journey The Program Type of sequence and affiliated baseline;
According to pending host source image and parameter is divided, pending host source program is divided into multiple subsets;
Untreated subset to idle Object Code Generator device is distributed to respond;
The host source program that the untreated subset of distribution includes is compiled as object code by the Object Code Generator device;
According to pending host source image and divide parameter, by pending host source program be divided into multiple subsets into One step includes:
Preliminary classification is carried out to the pending host source program according to the Program Type of host source program;
Subseries again is carried out to the host source program of preliminary classification according to the affiliated baseline of host source program;
The pending host source program of every class is respectively divided into multiple subsets according to parameter is divided;
Wherein, the host source of host source program maximum tolerance time and this kind of Program Type that parameter is each Program Type are divided Program average handling time is divided by the value of rounding.
2. big machine object code rapid generation as described in claim 1, which is characterized in that distribute untreated subset extremely Idle Object Code Generator device response further comprises:
The operating status of monitoring objective code generator is carried when it is idle to have detected Object Code Generator device operating status Hand over processing application;
Untreated subset is judged whether there is, if so, being then randomly assigned untreated subset to phase according to processing application The Object Code Generator device response answered, or according to priority distributed according to the priority of the processing application and the host source program Untreated subset to corresponding Object Code Generator device responds;
Download the host source program that the untreated subset of distribution includes.
3. machine object code rapid generation as described in claim 1 big, which is characterized in that this method further includes:
It monitors Object Code Generator device operating condition in real time, when there is Object Code Generator device to occur abnormal, it is abnormal to send closing The instruction of Object Code Generator device sends exception information to error recovery device to abnormal object code generator;
The processing state initialization for the host source program that abnormal object code generator is just being handled is by the error recovery device Untreated state sends warning message to system manager.
4. a kind of big machine object code quick-speed generation system, which is characterized in that the system comprises user terminal and object codes Generate server;
The user terminal receives the pending host source program of user registration;
The Object Code Generator server includes:Information acquisition device, distributor and task run device;
Described information acquisition device obtains pending host source image from the user terminal, wherein the host source Program information includes the Program Type of host source program and affiliated baseline;
The distributor is according to pending host source image and divides parameter by pending host source program division For multiple subsets, distributes untreated subset to idle Object Code Generator device and respond;
Task run device includes multiple Object Code Generator devices, and the Object Code Generator device is by the untreated subset of distribution Including host source program be compiled as object code;
The distributor includes the first taxon, the second taxon and subset division unit,
First taxon is used to carry out the pending host source program according to the Program Type of host source program Preliminary classification;
Second taxon is used to carry out again the host source program of preliminary classification according to the affiliated baseline of host source program Subseries;
The subset division unit is used to that the pending host source program of every class to be respectively divided into multiple sons according to division parameter Collection;
Wherein, the host source of host source program maximum tolerance time and this kind of Program Type that parameter is each Program Type are divided Program average handling time is divided by the value of rounding.
5. big machine object code quick-speed generation system as claimed in claim 4, which is characterized in that the task run device is also Including monitoring modular and download module,
The monitoring modular is used for the state of monitoring objective code generator, when having detected Object Code Generator device operating status For the free time when, submit processing application to distributor;
The host source program that the untreated subset that the download module is used to distribute from user terminal downloads includes;
The distributor further includes distribution module, and the distribution module is used to judge whether there is untreated subset, if so, It is then randomly assigned untreated subset to corresponding Object Code Generator device according to processing application to respond, or according to the place The priority of reason application and the host source program according to priority distributes untreated subset to corresponding Object Code Generator device Response.
6. big machine object code quick-speed generation system as claimed in claim 4, which is characterized in that the Object Code Generator clothes Business device further includes monitoring device and error recovery device;
The monitoring device connects the Object Code Generator device in the task run device, monitors Object Code Generator device in real time Operating condition send when there is Object Code Generator device to occur abnormal and close the instruction of abnormal object code generator to different Normal Object Code Generator device sends exception information to error recovery device;
The processing state initialization for the host source program that abnormal object code generator is just being handled is by the error recovery device Untreated state sends warning message to system manager.
CN201510673746.3A 2015-10-16 2015-10-16 Big machine object code rapid generation and system Active CN105224333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510673746.3A CN105224333B (en) 2015-10-16 2015-10-16 Big machine object code rapid generation and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510673746.3A CN105224333B (en) 2015-10-16 2015-10-16 Big machine object code rapid generation and system

Publications (2)

Publication Number Publication Date
CN105224333A CN105224333A (en) 2016-01-06
CN105224333B true CN105224333B (en) 2018-09-07

Family

ID=54993330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510673746.3A Active CN105224333B (en) 2015-10-16 2015-10-16 Big machine object code rapid generation and system

Country Status (1)

Country Link
CN (1) CN105224333B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279976B (en) * 2017-12-26 2021-11-19 努比亚技术有限公司 Compiling resource scheduling method, computer and computer readable storage medium
CN113238884B (en) * 2021-05-06 2022-02-08 国家计算机网络与信息安全管理中心 Firmware file detection method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140525A (en) * 2007-10-17 2008-03-12 中兴通讯股份有限公司 Distributed translate and edit method
CN101582041A (en) * 2009-05-25 2009-11-18 中山大学 Distributed compilation method and system based on web
CN101593126A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 A kind of distributed precompiler dissemination method as a result and system
CN103440136A (en) * 2013-09-05 2013-12-11 迈普通信技术股份有限公司 Distributed authoring and versioning method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140525A (en) * 2007-10-17 2008-03-12 中兴通讯股份有限公司 Distributed translate and edit method
CN101582041A (en) * 2009-05-25 2009-11-18 中山大学 Distributed compilation method and system based on web
CN101593126A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 A kind of distributed precompiler dissemination method as a result and system
CN103440136A (en) * 2013-09-05 2013-12-11 迈普通信技术股份有限公司 Distributed authoring and versioning method and system

Also Published As

Publication number Publication date
CN105224333A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN109933306B (en) Self-adaptive hybrid cloud computing framework generation method based on operation type recognition
CN108491254A (en) A kind of dispatching method and device of data warehouse
CN102325061B (en) Network monitoring method, equipment and system
CA3171582A1 (en) Decentralized governance regulatory compliance (d-grc) controller
CN108255628A (en) A kind of data processing method and device
CN113741909B (en) Micro-service deployment method and device, electronic equipment and storage medium
CN110489142B (en) Evaluation method and device for equipment software upgrading, storage medium and terminal
CN105224333B (en) Big machine object code rapid generation and system
CN112365157A (en) Intelligent dispatching method, device, equipment and storage medium
CN114880312B (en) Flexibly-set application system service data auditing method
US11587094B2 (en) Customer service ticket evaluation using multiple time-based machine learning models customer
CN114996079A (en) Operation and maintenance monitoring method and device, computer equipment and computer readable storage medium
CN111913824A (en) Method for determining data link fault reason and related equipment
CN109409780B (en) Change processing method, device, computer equipment and storage medium
CN110796341A (en) Distributed batch processing method and device for collection cases and electronic equipment
CN109359034A (en) A kind of operation system test method, computer readable storage medium and terminal device
CN108228355A (en) Task processing method and device, method for scheduling task and device
CN109558887A (en) A kind of method and apparatus of predictive behavior
CN111063407A (en) Medical resource data processing method and system based on block chain
CN111082964A (en) Distribution method and device of configuration information
CN108268474A (en) A kind of method and device of stock control
CN111277626A (en) Server upgrading method and device, electronic equipment and medium
AU2018201304A1 (en) A model management system
CN115022171A (en) Optimization method and device for updating interface, electronic equipment and readable storage medium
CN111796934B (en) Task issuing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant