CN1267823C - Member connecting method in operating system - Google Patents

Member connecting method in operating system Download PDF

Info

Publication number
CN1267823C
CN1267823C CN 200410009180 CN200410009180A CN1267823C CN 1267823 C CN1267823 C CN 1267823C CN 200410009180 CN200410009180 CN 200410009180 CN 200410009180 A CN200410009180 A CN 200410009180A CN 1267823 C CN1267823 C CN 1267823C
Authority
CN
China
Prior art keywords
journey module
postscript
preface
module
journey
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200410009180
Other languages
Chinese (zh)
Other versions
CN1584841A (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.)
Peking University
Original Assignee
Peking University
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 Peking University filed Critical Peking University
Priority to CN 200410009180 priority Critical patent/CN1267823C/en
Publication of CN1584841A publication Critical patent/CN1584841A/en
Application granted granted Critical
Publication of CN1267823C publication Critical patent/CN1267823C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a connecting method of an operation system component, which belongs to the field of an operation system structure. The method solves the problems of related concurrency control, safe protection, etc. existing in an operation system. A program module and a postscript program module are inserted between components. The present invention provides the connecting function of a system layer by the two modules. After a source component invokes a target component, the program module intercepts the source component to the target component for invoking. The program module executes corresponding treatment which is related with connecting characteristics according to the connecting requirements between the components. After the program module is treated, control is given to the target component. After the target component realizes service required by the source component, the postscript program module intercepts returned target codes, and executes the opposite treatment of the program module. Besides, the control is returned to the source component. The present invention not only can treat concurrency control, striding protection field connection and communication in the operation system in a centralized form, but also can support real-time application, distributed application and dynamic evolution of an operation system structure.

Description

The method of attachment of member in the operating system
Technical field
The invention belongs to computer operating system structure field, be specifically related to the method for attachment of member in a kind of operating system.
Background technology
The make of operating system comprises, structuring software development methodology and component-based software development approach.Adopt in the operating system of structuring software development methodology exploitation, each functional module of operating system is mainly used high level language (part that part is tight with combination of hardware or performance requirement is harsh adopts assembly language), after being assembled into file destination through compiler compiling and via assembler, static chain is connected into kernel reflection (or each ingredient of kernel).With reference to figure 1, in the link of operating system module mode, there is tight inseparable contact between the modules A of participation link and the B---the address that is function_B2 promptly fills in modules A when two object modules are linked, and can not change.Modules A is carried out when calling among the module B function f unction_B2, and process is quite direct.Though the centralized concurrent controlling schemes such as tube side, class also is provided in the structuring development approach, intrasystem other mutual exclusions and synchronous operation well do not solve among still being scattered in each module.Adopt the operating system of component-based software development approach exploitation then to be, with constructing good operating system component in advance, static state/dynamic group takes on operating system nucleus and service.Based on the operating system of member with adopt the maximum difference between the operating system (comprising Mach) of modular approach exploitation to be that the principal ingredient of forming system no longer is a module, but reusable one by one member.Member is compared with module, and its main difference is embodied in: member is emphasized reusability, replaceability, thus its interface with realize and must separate that module does not then have this requirement.But, adopt component-based development the same, problems such as under the multiprogramming environment, the member connection exists concurrent control, mutual exclusion and stationary problem, safety problem, it is distributed to provide, network environment support with the structuring exploitation.Particularly the operating system field lacks member encapsulation standard, the interface standard of generally acknowledging; assembling has brought very big difficulty to member; in addition; with the application layer software component groups ratio of pretending, the assembling of operating system component need to operational efficiency, exceptional space expense, share with isolate, protection and safe etc. all need give special consideration.
Summary of the invention
The present invention has overcome can't solve mutual exclusion relevant with the member connection features and deficiency synchronous, security problems in the aforesaid operations system construction, a kind of member method of attachment of operating system is provided, by between member and member, increasing layer indirectly, solve concurrent control under the multiprogramming environment, safely, problem such as distributed, network environment support is provided.
Technology contents of the present invention: the method for attachment of member in a kind of operating system, step comprises:
1, between the operating system component that needs connect, inserts preface journey module and postscript journey module, the connection processing flow process between member is set in preface journey module and postscript journey module;
2, behind the source member invocation target member, this calls preface journey module intercepts, according to the connection requirement between member, carries out the connection processing flow process, finishes corresponding processing;
3, after the preface journey resume module, give target member with control, target member is realized source member institute requested service;
4, after target member was finished service, the object code that postscript journey module intercepts is returned was carried out and the corresponding processing of preface journey module, and is turned back to the source member.
Further comprise: with the connection processing flow process in preface journey module and the postscript journey module as general prefabricated method of attachment function, put into the method for attachment table, call according to specifically being connected needs by preface journey module and postscript journey module, set up that step of connecting comprises between member:
1, behind the source member invocation target member, preface journey module is intercepted and captured source member calling to target member;
2, preface journey module is judged the demand that connects between member, according to the actual requirements, calls treatment scheme corresponding in the method for attachment table, finishes corresponding processing;
3, turn back to preface journey module after handling, if also have other demand, then repeating step 2 once more calls other respective handling flow process in the method for attachment table, finishes corresponding processing, returns, otherwise changes step 4;
4, preface journey module is given target member with control;
5, target member is finished after the source member institute requested service, carries out link order;
6, the link order of postscript journey module blip steady member at the processing that step 2 is done, is called corresponding treatment scheme in the method for attachment table, finishes corresponding processing;
7, turn back to postscript journey module after the processing, multiple if connection requirement has, continue step 6, dispose up to all demands, otherwise change step 8;
8, be back to the source member.
The template that in system, only keeps a preface journey module and postscript journey module, during connection, preface journey module and postscript journey module are copied in the internal memory, by filling in relocation information, the allocating stack in preface journey module and the postscript journey module, between the contiguous function between source member and preface journey, in preface journey and the method for attachment table, the preface journey and and target member between, set up respectively between the contiguous function between target member and the postscript journey, in postscript journey and the method for attachment table and between postscript journey and the source member and link.
When guaranteeing that target member returns, enter postscript journey module and carry out, need to adjust storehouse.The method of adjusting storehouse is:
(1) preface journey module duplicates out with the return address (being address in the member of source) of depositing in the allocating stack, preserves;
(2) preface journey module is pressed into allocating stack with the start address of postscript journey module;
(3) after target member is finished, when returning, from storehouse, eject the return address;
(4) return address is the inlet of postscript journey, and postscript Cheng Mo BOB(beginning of block) is carried out;
(5) postscript journey module is filled out the readjustment storehouse with the actual return address of preface journey module preservation in the step 1;
When (6) postscript journey module is returned, from storehouse, eject the return address, turn back to the source member.
In order to solve the concurrent processing of member, the connection processing flow process comprises: obtain, discharge the exclusive reference of mutex with support member; Hanging up, recover member carries out to support the synchronization of access to member.Preface journey module changes to busy condition with mutex; Postscript journey module changes to idle condition with mutex; For supporting synchronization of access, preface journey module is articulated to the source member on the waiting list of target member, is set to blocked state; Postscript journey module recovery run time version, wake source member recover to carry out.
Stride for transparent support between the member of protected field and connect, further comprise system call and up calling.Wherein system call process source member is positioned at user's attitude, and target member is in the situation of kernel mode, and detailed process is as follows:
(1) the user class member calls by preface journey module generation system, is absorbed in kernel mode;
(2) after the kernel mode code is finished system call, turn back to user's space, call return data by the signaling mechanism interception system and also handled;
(3) after system call is returned, the scene is called in the module recovery of postscript journey, and system results is returned to the source member.
The up process source member that calls is positioned at kernel mode, and target member is in the situation of user's attitude, and detailed process is as follows:
(1) the preface range code is that kernel mode source member generates signal, and is articulated to the postscript range code on the task at target member place as signal;
(2) system is back to user's attitude from kernel mode, the target member execution that is scheduled;
(3) operating system nucleus guarantees that the signal handler of target member at first obtains carrying out, and gives target member with control at last.
In order to support real-time application, the connection processing flow process further comprises: high interrupt level is set, recovers high interrupt level.In preface journey module, call, the operation of the mask bit of programmable interrupt controller is set: in postscript journey module, call and reset mask bit in the programmable interrupt controller, recover the operation of original interrupt mask according to interrupt levels.
In order to support Distributed Application, described connection processing flow process further comprises: remote message sends, remote message receives.The recalls information of calling the source member in preface journey module is packaged as internet message, and send to the operation of target member place node, in postscript journey module, call from network and receive return messages, and unpack and turn back to the operation of source member with the form of Local Procedure Call from target member.
For dynamic load, unloading and the replacement that realizes operating system component, described connection processing flow process comprises Read-Write Locks operation and reference count operation.By " free time " state of read lock operated target control member, counting increases one, subtracts an operation, the situation that is used of record object member by reference.In the preface journey, call and obtain read lock operation and the member reference count increases an operation, in the postscript journey, call the release read latching operation and the member reference count subtracts an operation.When the member reference count is zero, when being in " free time " state, after the management service of replacement obtained to write lock, member can be unloaded or be replaced.
Technique effect of the present invention: between member to be connected, insert preface journey module and postscript journey module; by the exchange channels between intercepting source member and the target member; reciprocal process between the control member; the system layer linkage function is provided, will be scattered in concurrent control in each module of operating system, mutual exclusion synchronously, problem such as safeguard protection puts together and handles.And the function code of the member that participate in to connect is not made amendment, the relocation information of calling between the direct manipulation member is finished intercepting and capturing, the establishment of connection of control.
The author of operating system component needn't write with concurrent control, mutual exclusion synchronously, relevant code such as safeguard protection, the function that more energy can be put into member itself is gone in designing, developing.When function is divided, will need only to need the special flow process of handling to realize, and after component development finishes, in component interface is described, provide corresponding demand and get final product with independent process, function.The quality of member itself is little because of size of code, good reliability, function singleness, Easy Test, easily multiplexing.Because the function that realizes in the binding code is a code indispensable in the operating system, adopts the method for same processing can't bring significant performance cost and space expense.
The processing that all are relevant with connection features all can directly realize in preface journey and postscript range code, also can be used as general prefabricated method of attachment function, puts into the method for attachment table, is called according to specifically being connected needs with the postscript range code by the preface journey.The present invention can provide unified concurrent control and treatment routine, handle routine or provide unified IRQ level to handle routine as exclusive reference and synchronization of access processing, unified member reference count processing routine, unified remote procedure call, and the member authentication measure of inspection source is provided, provides connection processing between the member of striding protected field, as system call, up calling; Provide the equivalence of Traditional IP C method to realize, comprising: shared drive, message queue, signal, socket, incident etc.; Communication support between member between legacy network (distributed) environment lower node is provided, connects with sending message and the method for attachment that receives message, finishing between the member of strange land.But handle concurrent control in the operating system (comprising that mutual exclusion is with synchronous), stride protected field and be connected and communicate by letter by the present invention concentrated area; improvement connects and the means of communicating by letter the support of real-time application, the unified processing between the distributed environment lower member; and by the member life management, for the dynamic evolution of operating system configuration provides solution.
Description of drawings
Below in conjunction with accompanying drawing, the present invention/utility model is made detailed description.
Fig. 1 is the connection diagram of modular mode;
Fig. 2 is the element structure figure of operating system of the present invention;
Fig. 3 is method of attachment list structure figure of the present invention;
Fig. 4 is a call connected synoptic diagram of the present invention;
The schematic flow sheet of preface journey module in Fig. 5 embodiment of the invention;
Fig. 6 is the schematic flow sheet of postscript journey module in the embodiment of the invention;
Fig. 7 connects the synoptic diagram of back allocating stack for the present invention;
7-a is before the method call;
7-b is for after the execution call instruction;
7-c represents that it is postscript Cheng Mo block entrance q that preface journey module is rewritten the return address, and is constant after the target approach method;
After 7-d represented that goal approach returns, the return address was ejected, and entered postscript journey module;
The 7-e original return address A of the manual pop down of journey module that represents to cross mountains simulates original calling;
7-f represents to cross mountains after the journey module returns, and continues to carry out the code of component invoking.
Fig. 8 is the schematic flow sheet of preface and postscript module among another embodiment.
Embodiment
Set up between member in the assembling process that connects the system that is based on member a step of tool essential meaning according to the essential attribute of member.The present invention at first standardizes to the operating system component that participates in assembling (connection), with reference to figure 2, in the interface message that member provides, provide the essential attribute and the keynote of each interface method, whether attribute information comprises whether this interface method needs mutual exclusion, synchronously, far call, system call, the needed interrupt levels of operation; Keynote is the character string that is organized into certain form coding, wherein provides title, rreturn value type, parameter list information of method etc.The present invention does not do requirement to concrete encapsulation format, during realization, can preserve this type of information in the member object code or in the other storage file (as registration table).Specifically can comprise:
1) the realization situation of interface method (supposition allows member partly to realize certain interface);
2) whether need exclusive reference, promptly whether this interface method is supported to reentry;
3) method for synchronous whether is if then called side need be waited for after this method finishes and could continue execution; Otherwise the called side member can continue to carry out when method begins to carry out;
When 4) method is carried out, the reference value that the minimal disruption level is provided with;
5) the access control setting of interface method.
The connection of the present invention between two members is many two sections codes of finishing writing in advance, i.e. preface journey module and postscript journey module.In addition, according to prior given demand, treatment scheme corresponding in the connection processing routine is also finished writing in preface journey module and postscript journey module in advance.Behind the member invocation target member of source, this calls preface journey module intercepts, according to the connection requirement between member, preface journey module is carried out the corresponding processing relevant with connection features, after the preface journey resume module, gives target member with control, after target member is realized source member institute requested service, the object code that postscript journey module intercepts is returned is carried out and the relative processing of preface journey module, and object code is returned to the source member.
Preface journey module and postscript journey module can comprise some concrete connection processing flow processs, for example, directly comprise the code of increase member reference count etc. in preface journey module.But, do so dumb, be not easy to the expansion.Therefore, can be independent the logic of connection processing, realize with independent function, be made into method of attachment, be inserted in the method for attachment table.Only keep the vestige that calls in preface journey module and the postscript journey module to corresponding method in the method table.The method of attachment table provides sets up the unified disposal route that will handle problems when connecting between member.With reference to figure 3, for example,, provide the process of obtaining Read-Write Locks and the process that discharges Read-Write Locks in the method table, respectively by preface journey module and postscript journey module invokes at problem of mutual exclusion; At stationary problem, provide the source member to enter waiting list respectively and will move on to the process of ready queue in the member of source from waiting list, by preface journey module and postscript journey module invokes, comprise some such methods of attachment in the method for attachment table respectively.The complete or collected works of method of attachment can satisfy the processing of different connected modes between all members in the system.In order to realize respectively by preface journey module and postscript journey module invokes, in the skeleton code that the binding method table forms, relocation information is emptied (zero setting) in binary level, wait to set up when connecting and fill in.
Annexation can be set up when structure goal systems reflection between member, also can static foundation when system start-up.With reference to figure 4, after the method for utilizing the present invention to provide connected, the interactive step process was as follows between source member A and target member B:
1, source member A desire is by the interface function Function_B2 of normal mode component invoking B.By binding procedure, among the member A invoke code of Function_B2 is modified to and calls the preface range code.The binding service only needs the symbol relocatable address among the member A of modification source to get final product in this process.
2, the preface journey is taken as Function_B2 and is called, and by the connection processing flow process, does binding synchronously, mutual exclusion binding, cross-domain binding and handles.With reference to figure 5, the reference count with maintenance component B is an example here, call binding and handle function inc_ref_count in the routine, and with the pointer of member B as the parameter transmission.
3, after the preface journey was finished and handled corresponding early stage, directly redirect (noting it not being call instruction call) was to the inlet of realization of goal function F unction_B2.The function F unction_B2 of member B does not have this process and perceives.So far it is transparent to realize that handle early stage.Simultaneously, preserve the return address loc_call that is pressed in the storehouse, return address in the storehouse is modified as the inlet of postscript journey.
4, the interface function Function_B2 of member B carries out to finishing.
The interface function Function_B2 of member B carries out link order ret, ejects the return address from storehouse.What in fact begin to carry out is not the instruction at loc_call place among the original member A, but the instruction of postscript range code.
5, the postscript range code is carried out, and does the processing relative with the preface journey, with reference to figure 6, as release Read-Write Locks, mutex, the reference count of member B is subtracted first-class.Wherein the code of each binding processing routine also calls by binding processing routine table.
6, the postscript range code finishes, and directly jumps to the loc_call position of original preservation, promptly carries out Funcion_B2 among the member A and calls code afterwards.So far, whole invoked procedure processing finishes.Called side member A and the side of being called member B can't the middle processing procedures of perception.
During connection, preface journey block code is copied to certain position (being assumed to p) in the internal memory.Fill in relocation information in the preface range code (in the binary code be 0 various piece), link with the invoked treatment scheme foundation of reality, (call) in case of necessity, can duplicate a postscript range code certain position (being assumed to q) in the internal memory simultaneously as local method for synchronous.With reference to figure 7, at first the return address of depositing in the allocating stack is duplicated out in the preface range code, then the start address q with the postscript range code is pressed into allocating stack, and the method that jumps to target member is carried out.It is ignorant that the method that is called is adjusted situation to storehouse, the postscript range code that rebounds when returning inlet q.The postscript range code at first the actual return address of having preserved in the preface journey is filled in the readjustment use storehouse, execute logic after, return real component invoking.The allocating stack situation of striding protected field is that used storehouse has trickle difference with similar in same protected field.
The present invention only need be by the direct setting treatment scheme relevant with connection features in preface journey and postscript range code; or in the method for attachment table prefabricated method of attachment function; can the concentrated area handle concurrent control in the operating system (comprising that mutual exclusion is with synchronous), stride protected field and be connected and communicate by letter; improvement connects and the means of communicating by letter the support of real-time application, the unified processing between the distributed environment lower member; and by the member life management, for the dynamic evolution of operating system configuration provides solution.
As processing, two method of attachment functions are set in the method for attachment table: obtain mutex, discharge mutex, promptly utilize the atomicity operation primitive of processor, institute is transmitted parameter change to busy or idle condition as mutex to exclusive reference.In the preface journey, call the mutex method of obtaining, in the postscript journey, call release mutex method.
As the processing to synchronization of access, need to realize two methods of attachment: member is hung up, member recovers to carry out.Component invoking is hung up code in the preface journey, the source member is articulated on the waiting list of target member, is set to blocked state.Component invoking recovers run time version wake source member in the postscript journey, recovers to carry out.
As processing to safeguard protection, only need a method of attachment, check user ID under the member of source, the service that can the access destination member be provided is provided.The method is called by the preface journey, does not need respective handling in the postscript journey.
With reference to figure 8, the present invention also can transparent support strides between the member of protected field and connects.Specifically comprise system call and up calling.The user class member can call by preface journey generation system, is absorbed in kernel mode.Implementation method is, the system call function number is filled up to the appointment register in the preface journey, the executive software interrupt instruction (as, on the IA32 architecture with the INT instruction, available SWI instruction on the ARM architecture).After the kernel mode code is finished system call, turn back to user's space after, available signal mechanism interception system calls return data and is handled.Method is the person of sending who the postscript journey is considered as system call, after system call is returned, recovers to call the scene, and system results is returned to the source member.The up direction of calling is opposite with system call: the source member is in core stage, and target member is in user class.The preface journey need generate signal for the source member, and signal is articulated to the task at target member place.Target member place task is called operation once more, and the signal Processing routine at first obtains carrying out, and gives target member with control at last.The postscript range code can be sky.
The present invention further supports to striding to communicate by letter between the protected field member.The communication of member span protected field is mainly handled with various IPC methods in legacy operating system.Utilize method provided by the invention, can transparently provide the equivalence of Traditional IP C to realize.For example, support shared drive (shm) mechanism, need to increase by two methods of attachment: the memory block mapping, memory block is removed mapping.The memory block map operation is mapped to the target member address space with institute to memory block, and this operation is called by the preface journey; Memory block is removed map operation institute is remapped to source member address space to memory block, and this operation is called by the postscript journey.
The present invention by promoting the priority of target member, guarantees that the scheme that its implementation is not disturbed by irrelevant external interrupt realizes to the support of real-time application.Specific practice is to increase by two connection processing flow processs: high interrupt level is set, recovers high interrupt level.Preface journey module is provided with the mask bit of PIC (programmable interrupt controller) according to the interrupt levels of being given in the goal approach, and shielding is irrelevant to be interrupted; Postscript journey module is reset PIC, recovers original interrupt mask setting.
The present invention also can directly support Distributed Application.This need not to consider the processing of distributed environment source member and target member when realizing, only need to provide in interface distributed connection requirement.The Distributed Application support is provided, needs to realize transparent remote procedure call mechanism.Particularly, increase by two methods of attachment: remote message sends, remote message receives.The remote message transmit operation is responsible for the recalls information of source member is packaged as internet message, and sends to target member place node, and this operation is called by the preface journey.Remote message receives operation and is responsible for receiving return messages from target member from network, and unpacks, and turns back to the source member with the form of Local Procedure Call.Remote message receives operation and is called by the postscript journey.Be positioned at remote node because actual service provides, so can remove the invocation of procedure in the preface journey target member.
The present invention further supports the dynamic evolution of operating system configuration.Support the evolution of operating system configuration, at first will support management the component of a system lifetime.For this reason, can realize Read-Write Locks, reference count method of attachment.Particularly, realize obtaining read lock, obtain write lock, discharge read lock, locking method is write in release.Be to call in the preface journey to obtain the read lock operation, in the postscript journey, call the release read latching operation.The management service of carry out the member termination, replacing then needs to call to obtain in the preface journey respectively to write latching operation, calls to discharge in the postscript journey and writes latching operation.Realize to increase the target member reference count, reduce target member reference count method, call in preface journey and postscript journey respectively, having only the member reference count is zero, and when being in " free time " state, and when obtaining to write lock, just allows unloaded or replacement.
Remove such scheme, the processing that all are relevant with connection features all can directly realize in preface journey and postscript journey module, also can be used as general prefabricated method of attachment function, puts into the method for attachment table, is called according to specifically being connected needs with the postscript range code by the preface journey.

Claims (10)

1, the method for attachment of member in a kind of operating system, step comprises:
(1) between the operating system component that needs connect, inserts preface journey module and postscript journey module, the connection processing flow process between member is set in preface journey module and postscript journey module;
(2) behind the source member invocation target member, this calls preface journey module intercepts, according to the connection requirement between member, carries out the connection processing flow process, finishes corresponding processing;
(3) after the preface journey resume module, give target member with control, target member is finished source member institute requested service;
(4) after target member was finished service, the object code that postscript journey module intercepts is returned was carried out and the corresponding reverse process of preface journey module, and is turned back to the source member.
2, the method for attachment of member in the operating system as claimed in claim 1, it is characterized in that: with the connection processing flow process in preface journey module and the postscript journey module as general prefabricated method of attachment function, put into the method for attachment table, call according to specifically being connected needs by preface journey module and postscript journey module, set up that step of connecting comprises between member:
(1) behind the source member invocation target member, preface journey module is intercepted and captured source member calling to target member;
(2) preface journey module is judged the demand that connects between member, according to the actual requirements, calls method of attachment function corresponding in the method for attachment table, finishes corresponding processing;
(3) turn back to preface journey module after handling, if also have other demand, then repeating step 2 once more calls other the corresponding method of attachment function in the method for attachment table, finishes corresponding processing, returns, otherwise changes step 4;
(4) preface journey module is given target member with control;
(5) target member is finished after the source member institute requested service, carries out link order;
(6) link order of postscript journey module blip steady member at the processing that step 2 is done, is called corresponding method of attachment function in the method for attachment table, finishes corresponding processing;
(7) turn back to postscript journey module after the processing, multiple if connection requirement has, continue step 6, dispose up to all demands, otherwise change step 8;
(8) be back to the source member.
3, the method of attachment of member in the operating system as claimed in claim 2, it is characterized in that: the template that in system, only keeps a preface journey module and postscript journey module, during connection, preface journey module and postscript journey module are copied in the internal memory, by filling in the relocation information in preface journey module and the postscript journey module, allocating stack is between source member and preface journey module, between the method for attachment function in preface journey module and the method for attachment table, preface journey module and and target member between, between target member and the postscript journey module, set up respectively between the method for attachment function in postscript journey module and the method for attachment table and between postscript journey module and the source member and link.
4, the method for attachment of member in the operating system as claimed in claim 3 is characterized in that: the allocating stack treatment step that the blip steady member returns control comprises:
(1) preface journey module duplicates out with the return address of depositing in the allocating stack, preserves;
(2) preface journey module is pressed into allocating stack with the start address of postscript journey module;
(3) after target member is finished, when returning, from storehouse, eject the return address;
(4) return address is the inlet of postscript journey, and postscript Cheng Mo BOB(beginning of block) is carried out;
(5) postscript journey module is filled out the readjustment storehouse with the actual return address of preface journey module preservation in the step 1;
When (6) postscript journey module is returned, from storehouse, eject the return address, turn back to the source member.
5, the method for attachment of member in the operating system as claimed in claim 1 is characterized in that: the operating system component that participates in connecting is standardized, and the interface message that member provides comprises the essential attribute and the keynote of each interface method.
6, the method for attachment of member in the operating system as claimed in claim 1 or 2 is characterized in that: the connection processing flow process is for obtaining or when discharging mutex, preface journey module changes to busy condition with mutex; Postscript journey module changes to idle condition with mutex.
7, the method for attachment of member in the operating system as claimed in claim 1 or 2 is characterized in that: when the connection processing flow process was member hang-up or recovery execution, preface journey module was articulated to the source member on the waiting list of target member, is set to the blocked state state; Postscript journey module is then recovered run time version, and the wake source member recovers to carry out.
8, the method for attachment of member in the operating system as claimed in claim 1 or 2, it is characterized in that: the connection processing flow process is for being provided with or when recovering high interrupt level, preface journey module is provided with the mask bit of programmable interrupt controller according to the interrupt levels of being given in the goal approach, and shielding is irrelevant to be interrupted; Postscript journey module is reset programmable interrupt controller, recovers original interrupt mask setting.
9, the method for attachment of member in the operating system as claimed in claim 1 or 2, it is characterized in that: when the connection processing flow process is remote message transmission or reception, preface journey module is packaged as internet message with the recalls information of source member, and sends to target member place node; Postscript journey module receives return messages from target member from network, and unpacks, and turns back to the source member with the form of Local Procedure Call.
10, the method for attachment of member in the operating system as claimed in claim 1 or 2 is characterized in that: when the connection processing flow process was reading and writing latching operation and counting operation, preface journey module was obtained read lock and the member reference count is increased one; Postscript journey module discharges read lock and the member reference count is subtracted one.
CN 200410009180 2004-06-07 2004-06-07 Member connecting method in operating system Expired - Fee Related CN1267823C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410009180 CN1267823C (en) 2004-06-07 2004-06-07 Member connecting method in operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410009180 CN1267823C (en) 2004-06-07 2004-06-07 Member connecting method in operating system

Publications (2)

Publication Number Publication Date
CN1584841A CN1584841A (en) 2005-02-23
CN1267823C true CN1267823C (en) 2006-08-02

Family

ID=34600235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410009180 Expired - Fee Related CN1267823C (en) 2004-06-07 2004-06-07 Member connecting method in operating system

Country Status (1)

Country Link
CN (1) CN1267823C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100361075C (en) * 2005-03-08 2008-01-09 光宝科技股份有限公司 Method and device for quickly developing embedded system using automatic compilation frame
CN100464303C (en) * 2006-08-25 2009-02-25 上海普元信息技术有限责任公司 Method of implementing distribution type operation logical calculation in structure software system

Also Published As

Publication number Publication date
CN1584841A (en) 2005-02-23

Similar Documents

Publication Publication Date Title
Barr et al. JiST: An efficient approach to simulation using virtual machines
Zhu et al. Jessica2: A distributed java virtual machine with transparent thread migration support
US7831752B2 (en) Method and device for interoperability in heterogeneous device environment
Jul Object mobility in a distributed object-oriented system
CN101169733B (en) Method and system for providing operation system service based on strategy
CN101661494A (en) Data interactive method for distributed middleware and database
CN1659539A (en) A network system having a virtual-service-module
CN1852209A (en) Remote process transfering method and system in distribution type control system
CN1432913A (en) System and method of managing drives in computer system
CN1991768A (en) Instruction set architecture-based inter-sequencer communications with a heterogeneous resource
CN1317640C (en) Multi-task application software module management method in real-time operating system environment
CN1710535A (en) GIS application system and development method thereof
CN102779047A (en) Embedded software support platform
CN1867891A (en) Method and apparatus for real-time multithreading
CN110780858A (en) Software layering architecture based on embedded operating system
CN104123194A (en) Communication structure and method for kernel mode and user mode
CN1514353A (en) Method of realizing cross address space establishing construction member target based on dynamic core
Medvidovic et al. A family of software architecture implementation frameworks
CN1267823C (en) Member connecting method in operating system
CN1749957A (en) Pattern-oriented engine-drawing IO intermediate device
CN1203427C (en) Load balance modulator possessing TCP connection fault tolerant function and its modulating method
CN1251079C (en) Method for realizing data interaction between different systems
CN115242563B (en) Network communication method, computing device and readable storage medium
Taboada et al. Device level communication libraries for high‐performance computing in Java
CN1141654C (en) System, method and article of manufacture for adding object services to binary class in object oriented 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: 20060802

Termination date: 20130607