Abstract A first peer entity in a data processing system comprising a plurality of similar peer entities searches for a share control file for a system privilege. The share control file contains an address of a master entity which controls the system privilege. The plurality of entities may be either a plurality of peer processors or If the first entity does not find a share control file, it creates a share control file which contains its system and maintain an exclusive write lock on the storage control file address. Each subsequent entity competing for the system privilege will also search for the share control file. However, since the subsequent entities will find the share control file created by the first entity, these entities read the share control file for the address of the master entity. The invention may be used in a multi or single processor environment.
A computer program product on a computer memory readable by a computer system having a plurality of peers, a system determining whether a the product peer has won a race for a system privilege comprising: program code means for searching for a share control file in a predetermined location in the system, the share control file containing an address of a master peer which has the system privilege; program code means responsive to the absence of the share control file for creating a share control file in the predetermined location, the share control file containing an address of the peer to become the master peer; program means for placing an exclusive write lock on the share control file; and, program code means for maintaining the exclusive write lock on the share control file.
Claim 2
Dependent Claim
133 words
A computer program product on a computer memory readable by a computer system having a plurality of peers, a system determining whether a the product peer has won a race for a system privilege comprising: program code means for searching for a share control file in a predetermined location in the system, the share control file containing an address of a master peer which has the system privilege; program code means responsive to the absence of the share control file for creating a share control file in the predetermined location, the share control file containing an address of the peer to become the master peer; program means for placing an exclusive write lock on the share control file; and, program code means for maintaining the exclusive write lock on the share control file.
Claim 3
Dependent Claim
33 words
The product as recited in claim 1 which further comprises: program code means responsive to finding the share control file, for reading the share control file for the address of the master peer.
Claim 4
Dependent Claim
19 words
The product as recited in claim 2 wherein the system privilege is to control access to a common resource.
Claim 5
Dependent Claim
17 words
The product as recited in claim 2 wherein the system privilege is to perform a system process.
Claim 6
Dependent Claim
20 words
The product as recited in claim 2 wherein the predetermined location is a common file system coupled to the processors.
Claim 7
Dependent Claim
18 words
The method as recited in claim 2 wherein the plurality of peers is a plurality of system processors.
Claim 8
Dependent Claim
18 words
The method as recited in claim 2 wherein the plurality of peers is a plurality of peer applications.
Claim 9
Dependent Claim
27 words
The method as recited in claim 2 wherein the plurality of peers is a replicated data object comprising a master replica and a plurality of shadow replicas.
Claim 10
Dependent Claim
46 words
The product as recited in claim 2 which further comprises: program code means for registering a set of the plurality of peers with the master peer as shadow peers, the shadow peers having priority in the order in which they were registered with the master peer.