Apparatus and method using lockout for synchronization of access to main memory signal groups in a multiprocessor data processing system

Abstract: In a multiprocessor data processing unit, a data element in the main memory unit, that has system wide significance, can have a requirement that this data element be altered in a controlled manner. Because other data processing units can have access to this data element, the alteration of the data element must be synchronized so the other data processing units are not in the process of altering the same data element simultaneously. The present invention includes an instruction that acquires access to an interlock signal in the main memory unit and initiates an interlock in the main memory unit, thereby excluding other data processing units from gaining access to the interlock signal simultaneously. The instruction causes the data element related to the interlock signal to be transferred to the data processing unit where the data element is saved, can be entered in mask apparatus and then have a quantity added thereto. The altered data element is returned to the main memory unit location and the main memory interlock signal is released, thereby completing the instruction.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates generally to data processing systems and, more particularly, to data processing systems in which a plurality of processing units store data elements in a common main memory unit. 2. Description of the Related Art In data processing systems in which a plurality of data processing units share a main memory unit for storing data required by the processing unit, a control program is implemented to share equitably the resources including the main memory among a multiplicity of users while simultaneously maintaining the integrity of data elements from inadvertent or malicious compromise. The control program can be in simultaneous execution in a plurality of data processing units. Therefore, the control program must synchronize the access to the data elements that are used to control the allocation and protection of resources. A similar problem can be present for users of the data processing system if their programs are executed on several data processing units simultaneously, referred to as parallel processing or multithreading. A need has therefore been felt for a flexible and efficient technique whereby changes in the data elements stored in main memory can be synchronized, thereby maintaining data integrity. In EP-A-0130593 there is described an apparatus for allowing a first unit gaining access to a shareable resource, such as a memory, to lock the shareable resource so that no other unit attempting to lock the shareable resource may be permitted access thereto. The locking function is applied in all read-modify-write operations, and shared access is not permitted when data may be modified by the accessing unit. EP-A-0121700 describes a storage serialization apparatus in a multiprocessor system which enables multiple processors to concurrently execute instructions which access storage keeping the amount of storage locked to a minimum (ie. one page). FEATURES OF THE INVENTION It is an object of the present invention to provide an improved data processing unit. It is a feature of the present invention to provide an improved technique for synchronizing changes to data elements in a data processing system. It is another feature of the present invention to provide for a synchronized updating of a main memory data element with a single instruction. It is yet another feature of the present invention to provide for saving the data element in the data processing unit before the data element is updated. SUMMARY OF THE INVENTION The aforementioned and other features are accomplished, according to the present invention, by providing an instruction, hereinafter called the RMAQI (read, mask, add quadword interlocked) instruction that causes the main memory unit (or a portion thereof) to be interlocked, transfers the addressed data element to the data processing unit, combines the data element with the contents of a mask register, adds the result to the contents of an addend register, and returns the data element to the original main memory location, while saving the original data element in the data processing unit. The functionality of the instruction permits a preselected data element or group of data elements to be placed in the main memory unit and/or permits one or more data elements to be augmented (a value added thereto) in the main memory data in a manner that is synchronized with other data processing units attempting the same operation on the same data in the main memory unit. These and other features of the present invention will be understood upon reading of the following description along with the drawings. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1A and Figure 1B are examples of data processing system implementations capable of using the present invention. Figure 2 is an example of a central processing unit of a data processing unit capable of using the present invention. Figure 3 is a diagrammatic illustration of the relationship of the data processing system operating modes. Figure 4 illustrates the steps in transferring from the user or kernel mode to the EPICODE mode. Figure 5 illustrates the operation of memory interlock mechanism. Figure 6 illustrates the steps in executing the RMAQI instruction according to the present invention. DESCRIPTION OF THE PREFERRED EMBODIMENT 1. Detailed Description of the Figures Referring now to Fig. 1A and Fig. 1B, two exemplary data processing system configurations capable of using the present invention are shown. In Fig. 1A, the central processing unit (#1) 11 is coupled to a system bus 19. Other central processing units (e.g., #N) 12 can also be coupled to the system. The central processing unit(s) 11 (through 12) process data according to the structure of the central processing unit(s) in conjunction with central processing unit control programs, the control programs consist of instructions resident in the main memory unit 15. The nonresident data and instructions are typically stored in the mass storage unit(s) and are transferred to and from the main memory unit 15 via the system bus 19. Input/output unit(s) {#1} 16 (through {#M} 17) couple devices such as mass memory storage units, user terminal devices and communication devices to the data processing system by means of the system bus 19. The mass storage units store the data and instructions required by the data processing unit(s). Sets of data and/or instructions, typically designated as pages of data and/or instructions, required for the operation of the central processing units 11 through 12, are transferred from the mass storage units, having relatively slow accessibility, to the main memory unit to which access by the central processing unit is relatively fast. The bus oriented system has an advantage in the relative ease to reconfigure the system but has the disadvantage that the each system component requires control apparatus to provide an interface with the system bus. Referring next to Fig. 1B, a data processing system is shown in which the central processing unit(s) 11 (through 12) and the input/output unit(s) 16 (through 17) are coupled to the main memory unit 15 through a memory control unit 14, the memory control unit 14 replacing the system bus 19 and the control function performed by individual data processing system components in the bus oriented data processing configuration shown in Fig. 1A. The memory control unit 14 provides a centralized control and monitoring of the transfer of data and instructions that can be more efficient than the bus oriented configuration of Fig. 1, but with the loss of flexibility. Referring next to Fig. 2, a block diagram of an exemplary central processing unit capable of effective utilization of the present invention is illustrated. The issue unit 22 is responsible for for providing (decoded) instructions to the plurality of specialized execution units comprising scalar operation address generation unit 24, at least one execution unit (#1) 25 (through execution unit {#Q} 26) and a vector operation unit 28, the vector operation unit 28 including vector operation processing unit 28A, vector operation address generation unit 28B and vector operation registers 28C. The data processed by the execution units are typically extracted from the scalar registers 23 or the vector registers 28C. The resulting data from the execution units are stored in the scalar registers 23, in the vector registers 28C or in the data cache memory unit 27. The data cache memory unit 27 can be viewed as a cache memory unit providing an interface between the main memory unit 15 and the central processing unit 11. (The data cache memory unit 27 is shown as being coupled directly to the main memory unit in Fig. 2. As illustrated in Fig. 1A and Fig. 1B, the actual coupling can include intervening data processing apparatus.) The issue unit 22 includes apparatus for determining which execution unit will process selected data and for determining when the selected execution unit is available for processing data. This latter feature includes ascertaining that the destination storage location will be available to store the processed data. The instruction cache memory unit 21 stores the instructions that are decoded and forwarded to the appropriate execution unit by the issue unit. The issue unit 22 has the apparatus to attempt to maximize the processing operations of the execution units. Thus, the issue unit 22 includes prefetch apparatus and algorithms to ensure that the appropriate instruction (including any branch instruction) is available to the issue unit 22 as needed. The plurality of execution units are, as indicated by the scalar operation address generation unit 24 and the vector operation unit 28, specialized processing devices for handling certain classes of processing operation. For example, an execution unit can be configured to handle floating point operations, or integer arithmetic operations, etc. The issue unit 22 has associated therewith scalar registers 23 that can store data required for the execution of the program or for providing a record of the data processing operation. For example, one register is the Program Counter register that stores the (virtual) address of the next instruction, in the executing program instruction sequence, to be processed. The scalar operation address generation unit 24 is used to convert virtual addresses to physical locations in the main memory unit 15. The issue unit 22 is also responsible for reordering the data from the execution units in the correct sequence when the execution units process instructions at different rates. The vector operation unit 28 includes a vector operation processing unit 28A, a vector operation address generation unit 28B and vector operation registers 28C. The activity of the vector operation processing unit can control the distribution of the data to the execution units 24 through 26 and the execution of the instructions therein. According to another embodiment (not shown), execution units dedicated to execution of instructions by the vector operation unit 28 can be available in the data processing system. When the execution units are available for both vector and scalar operations, control is subject to the overall system control of the issue unit 22 that allocates the resources of the data processing unit. Referring next to Fig. 3, the relationship of the two typical operating system modes and the EPICODE mode is shown. The user mode 3A typically executes application programs that perform processing functions of immediate interest to the user. The user is provided with relatively complete control in order to obtain the desired processing capabilities, but is limited in such a manner as to preserve system integrity. The user is free to execute any instruction that does not compromise system integrity. These instructions are referred to as nonprivileged instructions. The kernel mode 3B is the mode in which the operating system executes instructions. The instructions associated with the kernel mode 3B are privileged and are not available to user programs because the misuse or malicious use of these instructions could result in program failure or otherwise compromise system integrity. The kernel mode can also execute all of the nonprivileged instructions. Separate from but available to both the user mode 3A and to the kernel mode 3B is the EPICODE mode 3C. This mode of data processing system operation is reserved for instruction sequences that should execute without interruption. This mode is provided with certain privileges and certain dedicated hardware implementing the strategy to ensure noninterruptable (atomic) execution of the appropriate instruction sequences. Referring next to Fig. 4, the steps for entering the EPICODE mode from either of the operating modes are shown. An event 401, such as an interrupt, a hardware exception or an instruction in the EPICODE format communicates to the data processing system the requirement to enter the EPICODE mode. In step 402, the issue unit is prevented from issuing new instructions, but the instructions for which execution has begun are completed. The completion of currently executing instructions permits all hardware exceptions to be signaled prior to execution in the EPICODE mode. In step 403, the privilege to execute instructions reserved for the EPICODE mode is enabled. In step 404, the external interrupt signals are disabled and the virtual address mapping for instruction stream references is disabled in step 405. In step 406, any processor state that would be destroyed by the execution in the EPICODE mode is saved. For example, the contents of the Program Counter are saved in this step. Access to a special set of registers associated with the EPICODE mode is enabled in step 407. A new Program Counter address is formed by combining an address from a hardware register (called the EPICODE address register) with certain status signal flags in step 408. And in step 409, the sequence of ordinary and EPICODE instructions forming the addressed program are executed. Referring to Fig. 5, a technique for providing a main memory unit interlock for a bus oriented system is shown. According to one embodiment, an arbitration unit 61 determines which of the central processing units can gain access to the system bus 19. When a central processing unit gains access to the system bus 19, an operation code, address, and optional data are transferred on the system bus 19 to the main memory unit 15. The main memory unit 15 receives this information and the address is entered in address register 151 and the operation code is entered in register 154. When the operation code entered in register 154 includes an interlock signal (and an interlock signal is not already present), then the main memory unit stores in register 152 an interlock bit and the identification of the data processing unit now having exclusive interlocked access to the main memory unit 15. Thereafter, even when a subsystem gains control of the system bus 19, attempts to access the main memory unit in an interlocked manner will not be completed. When the controlling central processing unit releases the interlock bit, then the other subsystems (central processing units or input/output units) can access the main memory unit in an interlocked manner. The setting of an interlock bit does not preclude other central data or input/output processing units from accessing the data element in the main memory unit in a noninterlocked manner. In some implementations, a plurality of interlock bits related to a subset of addresses in the main memory unit may be utilized. In this manner, only the memory locations associated with the interlock bit are inaccessible for interlocked access permitting the remaining portion of the main memory unit to be available for interlocked data processing operations. In the configuration in which a memory controller unit 14 is present (in Fig. 1B), the arbitration function, queueing function and access control are performed in this unit. In the preferred embodiment, the memory subsystem has four functions, a read (quadword) function, a write (quadword) function, an acquire lock function and a release lock function. In addition, in the preferred embodiment, the interlock does not prevent a read or write of the data, but does not permit another lock at that address by another data processing unit while the interlock is present. Referring next to Fig. 6, the steps implementing the RMAQI instruction are illustrated. In step 601, the data processing unit executing the instruction disables interrupt signals, acquires access to the main memory unit and initiates an interlocked access. In step 602, the data element that is the subject of the RMAQI instruction is transferred to the central processing unit and, in step 603, stored in one of the scalar registers 23. The data has a logical AND operation performed thereon with a mask signal group stored in another of scalar register 23 in step 604. In step 605, an operand from yet another scalar register 23 is added to the result of step 604. In step 606, the modified data is returned to the main memory location from which it was originally extracted and the main memory interlock is released and the interrupts enabled in step 607. The original data is still available in the first scalar register referred to in step 603. 2. Operation of the Preferred Embodiment The central processing unit having pipelined execution units of Fig. 2 was implemented in the preferred embodiment subject to several constraints, however, other design implementations can utilize the present invention. The central processing unit includes a plurality of execution units, each execution unit adapted to execute a class of instructions. By way of example, one execution unit, the scalar address generating unit 24, controls the transfer of the logic signal groups between the central processing unit and the main memory unit, i.e., executes the scalar load/store instructions. One execution unit is adapted to execute data shifting operations, one execution unit for floating point add/subtract operations, one execution unit is adapted for integer and floating point multiply operations and one execution unit is adapted for integer and floating point divide operations. The specialized execution units can be, but are not necessarily implemented in a pipelined configuration. The other features of the central processing unit are the following. The instruction in the currently executing sequence of instructions is transferred to the issue unit 22 from the instruction cache memory unit 21. In the issue unit, the instruction is broken down into its constituent parts and data-dependent control signals and address signals are generated therefrom. However, before an instruction can begin execution (i.e., be issued), several constraints must be satisfied. All source and destination registers for the instruction must be available, i.e., no write operations to a needed register can be outstanding. The register write path must be available at the future cycle in which this instruction will store the processed quantity. The execution unit to be required for processing the instruction during the execution must be available to perform the operation. With respect to the vector operation unit, a vector operation reserves an execution unit for the duration of the vector operation. When a memory load/store instruction experiences a cache memory unit miss, the load/store unit busy flag will cause the subsequent load/store instructions to be delayed until the cache memory miss response is complete. When an instruction does issue, the destination register and the write path cycle for the result are reserved. During operand set-up, all instruction-independent register addresses are generated, operands are read and stored, and data-dependent control signals are generated. The instruction operands and control signals are passed to the associated execution unit for execution. The result generated by the execution unit is stored in the register files or in the data cache memory unit 15 as appropriate. Once an instruction issues, the result of the processing may not be available for several machine cycles. Meanwhile, in the next machine cycle, the next instruction can be decoded and can be issued when the requisite issue conditions are satisfied. Thus, the instructions are decoded and issued in the normal instruction sequence, but the results can be stored in a different order because of the of the varying instruction execution times of the execution units. This out of order storing complicates the exception handling and the retry of failing instructions. However, these events are relatively rare and the out of order storing provides execution and hardware advantages. The data processing system described above is typical and can be implemented in a multiplicity of ways. In particular, microcoding techniques are optional in implementing such a structure. When microcoding techniques are not employed, many requisite functions of the data processing system require complex sequencing, but none-the-less must be performed atomically to other activity in the central processing unit. Some examples of such functions include: I. Interrupt and exception dispatching, 2. Memory management control functions such as translation buffer fill, 3. Instructions that require complex sequencing such as the Return from Exception or Interrupt (REI) instruction, 4. Instructions that require controlled access to processor resources such as instructions that result in memory unit interlock, 5. Instructions that require an architected interface across all implementations for software compatibility, but whose physical implementation may vary widely between implementations. Examples include the Return from Exception and Interrupt and the Move To/From Processor Register. The present invention implements a mechanism whereby the change of data elements is synchronized for a plurality of programs by an instruction that 1. interlocks access to the memory, 2. reads the logic signal group in the designated memory location (i.e. the address can be either the physical address or the virtual address in the preferred embodiment), 3. saves the value from the designated memory location, 4. forms the logical product (i.e., the AND function) of the data elements from the designate memory location with a mask operand, 5. adds the logical product resulting from the operation to an addend operand, 6. writes the resultant sum back to the designated memory location and 7. releases the interlock. This instruction provides that no other central processing unit or supplementary processor (e.g., an input/output processor) in a multiprocessor system can simultaneously be updating the same memory location by means of another interlock and update instruction. The instruction and apparatus described herein can be used to implement the so-called spin locks, test and set operations, loop iteration induction variable assignment, reference counts on shared objects and other operations requiring multiprocessor synchronization. With the use of an EPICODE mode, or where available, a microcoded implementation, this complex sequence of instructions can be implemented in an atomic fashion. In addition, by executing the instruction in EPICODE mode, additional registers are available and certain events are disabled from interrupting execution of the instruction. It will be clear that although the RMAQI instruction is identified with a quadword data element at the virtual address identified by the instruction signal, data elements of any size can utilize the technique of the present invention. In the preferred embodiment, for example, a RMALI instruction is provided in which the data processed by the instruction is a longword at the virtual address identified by the instruction. In addition, the preferred embodiment includes a RMAQIP instruction, the instruction identifying a physical address. All the instructions are executed in the EPICODE mode. The foregoing description is included to illustrate the operation of the preferred embodiment and is not meant to limit the scope of the invention. The scope of the invention is to be limited only by the following claims.

Claims: Apparatus for modifying data elements in main memory (15) locations of a data processing system having a plurality of central processing units (11,12), each of said memory locations being either in a locked condition or an unlocked condition, comprising: a) means (21) for providing to each one of said central processing units (11) a plurality of instructions for execution, at least one of said instructions being an interlock instruction, each of said plurality of instructions causing the central processing unit that executes said instruction to transfer one of said data elements from one of said main memory (15) locations to said central processing unit (11), modify said data element, and transfer said modified data element back to said main memory location; b) interlock means (152) responsive to execution of each one of said instructions by one of said central processing units for: 1) granting said one central processing unit (11) interlock access to one (153) of said main memory locations by placing at least said one main memory location (153) in said locked condition if said executed instruction is an interlock instruction and said one main memory location is in said unlocked condition, 2) denying said one central processing unit access to one of said main memory locations if said executed instruction is an interlock instruction and said one main memory location is in said locked condition, and 3) granting even if said main memory location is in a locked condition said one central processing unit non-interlock access to said one main memory location without placing said one memory location in said locked condition if said executed instruction is not an interlock instruction; c) transfer means (19) for transferring said data element from said one main memory location (153) to said one central processing unit (11) that executes said instruction; d) processing means (25,26) for performing said modifying of said data element in response to said instruction executed by said one central processing unit; e) said transfer means (19) transferring said modified data element from said one central processing unit to said one main memory location; and f) if said executed instruction is an interlock instruction, said interlock means (152) placing said one main memory location (153) in said unlocked condition after said transfer of said modified data element to said one main memory location by said central processing unit that executed the interlock instruction. The data element modifying apparatus of claim 1 wherein said one central processing unit (11) is capable of operating in one of a plurality of privileged operating modes (3B,3C) and said one central processing unit operates in one of said privileged modes of operation in response to selected instructions executed by one of said central processing units. The data element modifying apparatus of claim 1 wherein a second central processing unit (12) can have noninterlocked access to said main memory location (153) when interlocked access is not permitted. The data element modifying apparatus of claim 1 wherein said at least one interlock instruction identifies a data element in said main memory location, said processing means modifying said data element in response to said interlock instruction. The apparatus of claim 1 wherein said processing means comprises: first storage means for storing said data element to be modified in said one central processing unit; logical means for forming a logical product of said data element and contents of a first register preselected by said one central processing unit to form a combined data element; and adding means for forming said modified data element by adding to said combined data element a signal group in a second register preselected by said one central processing unit. A method of modifying a data element (153) in a main memory unit (15) of a data processing system, said main memory unit having locations, said locations being either in a locked condition or an unlocked condition, said data processing system having a plurality of central processing units (11,12) and said main memory unit (15), comprising the steps of: a) providing to each one of said central processing units a plurality of instructions for execution, at least one of said instructions being an interlock instruction, execution of each of said plurality of instructions causing the central processing unit that executes said instruction to transfer one of said data elements from a location in said main memory unit to said central processing unit, modify said data element, and transfer said modified data element back to said main memory location; b) responding to each one of said instructions executed by one of said central processing units by: 1) granting (601) said one central processing unit (11) interlock access to said main memory location (153) by placing said main memory location in said locked condition if said executed instruction is an interlock instruction and said main memory location is in said unlocked condition, 2) denying said one central processing unit access to said main memory location if said executed instruction is an interlock instruction and said main memory location is in said locked condition, 3) granting even if said main memory is in a locked condition said one central processing unit noninterlocked access to said main memory location without placing said one memory location in said locked condition if said executed instruction is not an interlock instruction, and 4) causing said data element to be transferred (602) from said main memory location to said one central processing unit to be modified if said one central processing unit has been granted access to said main memory location; said one central processing unit further responding to said executed instruction by transferring (606) said modified data element from said one central processing unit to said main memory location, and, if said executed instruction is an interlock instruction, placing (607) said main memory location (153) in said unlocked condition; and c) executing said instruction by said one central processing unit without interruption from another of said central processing units. The method of claim 6, said data processing system being capable of operating in one of a plurality of operating modes (3A-3C), comprising the step of providing said data processing system with a mode of operation (3C) wherein said one central processing unit (11) can execute said instruction without interruption from another of said central processing units. The method of claim 7 wherein execution of said modifying step by said one central processing unit (11) further includes the steps of: forming (604) a logical product of said data element and contents of a mask register to form an intermediate data element; and adding (605) an operand from a register selected from said main memory location (153) by said one central processing unit (11) in response to said executed instructions to said intermediate data element. The method of claim 8 wherein said at least one interlock instruction comprises constituent instructions and further comprising the step of sorting said constituent instructions of said interlock instruction in reserved main memory locations. The method of claim 6 wherein the modification of said data element includes: storing (603) said data element in said one central processing unit (11); forming (604) a logical product of said data element and contents of a first register preselected by said one central processing unit to form a combined data element; and adding (605) a data signal group from a second register preselected by said one central processing unit to said combined data element to form said modified data element. A data processing system including at least one main memory unit (15) and a plurality of data processing units (11,12) comprising: a) means (21) for providing to each one of said data processing units a plurality of sequences of instructions; and b) control means (22) for executing one of said instruction sequences in response to a predetermined instruction from one of said data processing units (11), wherein, 1) if said predetermined instruction is an interlock instruction and said main memory unit (15) is not interlocked, said one data processing unit (11): interlocks said main memory unit and prevents another one of said data processing units from interlocking said main memory unit, modifies a data element in said main memory unit, and releases said main memory unit interlock; 2) if said predetermined instruction is an interlock instruction and said main memory unit is interlocked, said one data processing unit: is denied access to said main memory; and 3) if said predetermined instruction is not an interlock instruction and even if said main memory unit is interlocked, said one data processing unit modifies a data element in said main memory unit without interlocking said main memory unit. The data processing system in claim 11, wherein said predetermined instruction is a modify instruction, and wherein said plurality of sequences of instructions are stored in predetermined locations in said at least one main memory unit for execution, and wherein said execution of one of said instruction sequences is execution without interruption from another of said data processing units. The apparatus of claim 12 wherein, if said modify instruction is an interlock instruction, said data processor (11) modifies said data element by logically combining said data element with a mask signal stored in a register of said one data processing unit. The data processing system of claim 12 wherein said data processing unit (11) executes said instruction sequences in a mode of operation (3C) different from a user mode (3A) and a kernel mode (3B). The data processing system of claim 14 wherein said data processing unit (11) disables (601) interrupt signals from others of said data processing units when said data processing unit is in said mode. The data processing system of claim 14 wherein said data element (153) is stored in a central processing unit executing said one sequence of instructions after said data element has been modified. The data processing system in claim 11, wherein said plurality of data processing units (11,12) comprise a plurality of central processing units, wherein said at least one main memory unit (15) is a plurality of main memory units, and wherein each one of said central processing unit further comprises: a) register means connected to each of said central processing units for receiving data elements from one of said main memory units and for storing said data elements therein; b) transfer means (19) connected to each of said central processing units for transferring a data element between one of said main memory units and said register means of one of said central processing units; c) combining means for logically combining said transferred data element stored in said register means with a mask signal group stored in a second register means of said one central processing unit to form a modified data element; and d) interlock means associated with each of said main memory units for controlling interlock access to at least one data element; and wherein said control means includes execution means for executing said predetermined instruction included in said plurality of sequences of instructions provided for each of said central processing units and that includes an interlock instruction and a second instruction, said one central processing unit selecting between said interlock instruction and said second instruction; wherein if said predetermined instruction is an interlock instruction and said data element is not interlocked, execution of said interlock instruction: causing said interlock means to grant said one central processing unit interlock access to said data element, interlocking said data element, preventing interlock access to said data element by another of said central processing units when no other of said central processing units has interlock access to said data element, and when said one central processing unit has been granted interlock access modifying said data element in said main memory unit and releasing said main memory unit from interlock; said modifying and releasing further comprising: 1) causing said transfer means to transfer said data element to said register means of said one central processing unit, 2) causing said combining means to provide a modified data element, 3) causing said modified data element to replace said data element in said main memory unit, and 4) causing said interlock means to permit interlocked access to said modified data element when said modified data element has replaced said data element in said main memory unit; wherein if said predetermined instruction is an interlock instruction and said data element in said main memory unit is interlocked, said execution of said interlock instruction to deny said access by said central processing unit to said main memory further comprising: causing said interlock means to deny said one central processing unit interlock access to said data element when another of said central processing units has interlock access to said data element; and wherein if said predetermined instruction is said second instruction, said execution of said second instruction causing said modifying of said data element in said main memory unit without interlocking said main memory unit further comprising: 1) causing said interlock means to grant said one central processing unit noninterlock access to said data element, 2) causing said transfer means to transfer said data element to said register means of said one central processing unit, 3) causing said combining means to provide a modified data element, and 4) causing said modified data element to replace said data element in said main memory unit. The data processing system of claim 16 wherein said one central processing unit (11) executes said selected instruction without interruption from another of said central processing units. The data processing unit of claim 18 wherein said identified data element remains stored in said register means of said one central processing unit after said modified identified data element has been stored in said main memory unit. The data processing system of claim 19 wherein said identified data element in said register means of said central processing unit can be accessed by another of said central processing units in a noninterlocked fashion. The data processing system of claim 18 wherein each of said central processing units (11,12) executes a set of instructions, said set including a group of privileged instructions and a group of nonprivileged instructions, and each of said central processing units having a first mode of operation (3A) for executing said nonprivileged instructions, a second mode of operation (3B) for executing said privileged and said nonprivileged instructions, and a third mode of operation (3C) for executing predefined sequences of instructions implementing predefined said privileged and said nonprivileged instructions, said interlock instruction being a predefined instruction. The data processing unit of claim 21 wherein said central processing unit (11) enters said third mode of operation (3C) in response to a mode signal after said central processing unit completes currently executing instructions and disables interrupt signals from other of said central processing units. The data processing system of claim 17 wherein said combining means includes apparatus for adding said identified data element to an operand stored in said register means. The data processing system of claim 18 wherein said selected instruction identifies at least one mask signal in said mask signal group from a register selected from said main memory unit by said central processing unit in response to said selected instruction, and said selected instructions further identifies an operand signal group from a register selected from said main memory unit by said central processing unit in response to said selected instruction, said combining means logically combining said identified mask signal with said identified data element and adding identified said operand signal group to said identified data element. The data processing system of claim 17 wherein said identified data element is used to synchronize said central processing units.

Inventors: BHANDARKAR DILEEP, CARDOZA WAYNE, CUTLER DAVID N, ORBITS DAVID A, WITEK RICHARD T, BHANDARKAR, DILEEP, CARDOZA, WAYNE, CUTLER, DAVID N., ORBITS, DAVID A., WITEK, RICHARD T.
Applicants: DIGITAL EQUIPMENT CORP, DIGITAL EQUIPMENT CORPORATION
Application year: 1988
Main classification: G06F9
IPC codes: G06F15, G06F9