Shared memory interface with conventional access and...

Electrical computers and digital processing systems: memory – Storage accessing and control – Shared memory area

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C711S002000, C711S155000, C711S163000, C710S200000, C710S305000

Reexamination Certificate

active

06795901

ABSTRACT:

FIELD AND BACKGROUND OF THE INVENTION
The present invention relates to a computer bus structure for performing synchronization in a multiprocessor system with shared resources. More particularly, the present invention relates to a logic interface that supports atomic read-modify-write operations as well as normal read/write access to the shared memory of a multiprocessor environment using the redundant addressing of memory so as to select the desired function.
Process synchronization refers to the coordination of the concurrent activities of two or more processors of an embedded processor system. The processors involved in synchronization function with logic indicating the state of the process and cooperatively coordinate their actions by waiting on a condition that is capable of being set by any one of the competing processors. In the present invention, the condition is a variable that signifies the availability of a shared resource.
A specific problem of synchronization is mutual exclusion; a problem solved by the present invention by preventing two or more concurrent activities from simultaneously accessing a shared resource. The shared resource may be memory that is shared among a set of processors where the instructions that access the shared memory form a critical region. The critical region refers to a series of processor operations that must be executed in their entirety without interruption by another processor. The concern is that two or more processors with equal and unrestricted access to a memory, or a shared resource more generally, could result in one processor writing, modifying, or otherwise interfering with the data stored by another processor. In addition to coordinating the concurrent activities of multiple processors, multiple processes operating on a single processor may also compete for a resource.
The present solution to the mutual exclusion problem guarantees that once a processor of a multi-processor system has asserted control over the resource, any processor which subsequently requests access is denied simultaneous access if such use is inconsistent with the first processor's use of the resource. For example, where a first processor is modifying data in shared memory, every other processor must be denied concurrent access. In the alternative, limited concurrent access may be permitted, for example, where multiple processors require the resource for purposes of reading a memory location; such use being a consistent use.
A common approach to performing mutual exclusion is to use special instructions provided by the processor hardware called hardware primitives. Hardware primitives are the basic building blocks used to form a variety of user-level synchronization operations. The fundamental requirement of a primitive is that it must provide a processor with the capability to atomically read and modify a memory location. The instruction is atomic if the primitives are indivisible such that the execution of no other instructions can occur between the given pair of primitives. Indivisible operations prevent multiple processors from concurrently gaining access to a shared resource intended for exclusive use by only one processor at a time. Thus, atomic instructions by a first processor prevent another processor from changing the memory in the interim between the steps of a read and modify operation in which a first processor takes possession of the resource.
There are a number of read-modify-write primitives that can be used to implement synchronization. One such instruction is “test-and-set” which uses a mutual exclusion variable, commonly called a mutex or lock, to signify the availability of the shared resource to the processor. The mutex variable acts as a flag and coordinates multiple processors that may attempt to concurrently access the resource. A mutex variable is created for each resource where access must be restricted.
The test-and-set instruction is comprised of a read operation immediately followed by a write operation in which a lock variable is modified contingent upon the value initially read. The “test” of the mutex value is initiated by means of a read operation generated by a processor. The mutex is then compared against a predetermined value which, by convention, indicates the status of the resource. If the test of the lock indicates that the resource is free, a “set” operation is executed by means of a write instruction by which the lock variable is modified to indicate the updated status of the resource. The operation, for example, could test for “0” and then set the mutex to “1” in order to lock out other processors from accessing the resource. In this manner a processor asserts possession of a resource. A second processor attempting to gain access to the resource would therefore have logical notice that the resource is unavailable, thereby locking out the second processor until the processor in possession releases the resource by resetting the mutex value to its original value. It is critical that the read and write operations be performed in an atomic manner in order to prevent another processor from initiating a test-and-set instruction prior to completion of the primitive.
Mutual exclusion locks are well known in the prior art, and various other methods for implementing synchronization include software and operating system support. Software-based synchronization solutions use global variables to control access to critical regions, but are not extendable to multiprocessor systems. Another prior art solution uses semaphores implemented in the operating system with lower level primitives such as the test-and-set instruction. A significant disadvantage of lower level primitives is that they typically cannot be implemented on a system with incompatible processor types.
U.S. Pat. No. 5,287,503 to Narad implements an aliasing scheme for performing bit storage and bit manipulation of data using a physical atomic access register structure comprised of an array of flip-flops. A single physical atomic access register is accessible by means of three unique addresses which, after decoding, allow a processor to atomically access the shared register in order to read, set, or clear a bit by executing an access request to the corresponding address. While individual bits of data in the Narad access register can be atomically modified, the system is incapable of atomically performing a read and conditional write of a bit, thereby making it ineffective as a mutual exclusion apparatus.
U.S. Pat. No. 5,276,886 to Dror claims an interface structure for storage of hardware semaphores in which flag variables are stored in multiple 1-bit registers to which multiple processors have access. The disadvantage of the semaphore register is that it is a dedicated memory device capable of coordinating only as many shared resources as there are register structures. Since the Dror interface fails to provide conventional read and write access, the semaphore cannot be interleaved with the data it regulates where the shared resource is memory. As such, the Dror interface requires additional complexity in design while reducing the versatility of the system.
SUMMARY OF THE INVENTION
It is the object of this invention to provide read-modify-write functionality for the processors of a multiprocessor system. This functionality is particularly useful for processors which do not support indivisible memory operations necessary for performing mutual exclusion or processors which practice incompatible forms of mutual exclusion functionality in a multiprocessor system.
Another object of the present invention is to provide an apparatus for and method of performing atomic read-modify-write functionality on lock variables stored within the shared memory of any existing form of memory device without compromising conventional (i.e., general purpose storage) read and write access.
The present invention relates to a method and apparatus for providing synchronization support using a memory interface and extended address space, permitting both conventional read and write access as

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Shared memory interface with conventional access and... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Shared memory interface with conventional access and..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Shared memory interface with conventional access and... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3254723

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.