Apparatus and method for file locking for computer programs...

Data processing: database and file management or data structures – Database design – Data structure types

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C707S793000, C707S793000, C707S793000

Reexamination Certificate

active

06523033

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Technical Field
This invention generally relates to computer systems and more specifically relates to an apparatus and method for locking files in a computer system.
2. Background Art
Since the dawn of the computer era, computer systems have evolved into extremely sophisticated devices that may be found in many different settings. Computer systems typically include a combination of hardware (e.g., semiconductors, circuit boards, etc.) and software (e.g., computer programs). As advances in semiconductor processing and computer architecture push the performance of the computer hardware higher, more sophisticated computer software has evolved to take advantage of the higher performance of the hardware, resulting in computer systems today that are much more powerful than just a few years ago.
Computer programs sometimes need to read or write a file without the threat of the file being changed during the read or write. File locking schemes have been developed to allow a computer program to lock a file before accessing the file, thereby protecting the file from being accessed by other computer programs while the file is locked. Once the file is unlocked, computer programs can access the file as needed, and may set the lock on the file before accessing the file as required.
Locking schemes have been incorporated into operating systems to relieve software applications of the burden of implementing locking schemes, and to provide a secure manner in handling file locking that cannot be altered or disabled by a computer program. For example, personal computer operating systems, such as IBM's OS/2 and Microsoft Windows, use 32 or 64 bit locks to lock a file or portion of a file. In another example, IBM's OS/400 operating system for the AS/400 computer implements a 64 bit signed lock, but ignores all negative lock addresses, resulting in 63 bits of addressable lock addresses.
Some computer systems may need to provide locking to different computer programs that expect different sized locks. For example, the OS/400 operating system needs to be able to service file locking for Unix applications that use 63 bit locks as well as file locking for PC applications that use 64 bit locks. However, this mismatch between expected size of locks introduces a problem, because any lock of an address above 63 bits cannot be recognized by Unix applications that only expect 63 bit locks. Without a way to provide a locking scheme that can service different size locks, operating systems will continue to have potential problems when servicing computer programs that use different size locks.
SUMMARY OF INVENTION
According to the preferred embodiments, an apparatus and method provide a locking scheme that accommodates different size file locks. A first file lock command, referred to as an M bit file lock command, assumes a lock with a length of M bits. A second lock command, referred to as an N bit file lock command, assumes a lock with a length of N bits, which is less than M bits. A translation mechanism services both M-bit and N-bit file lock commands, and accesses locks that are M bits in length in response to both M-bit and N-bit file lock commands. The address range between 2
N
and 2
M
−1 are assigned to one or more corresponding control addresses in the address range of 0 to 2
N
−1. Locking of any control address using an N bit file lock command results in the address range between 2
N
and 2
M
−1 being automatically locked in addition to the addresses specified in the N bit file lock command. This allows translating an N bit file lock command to an M bit lock. Similarly, when an M bit file lock command locks any address between 2
N
and 2
M
−1, the translation mechanism locks the address or addresses specified in the M bit file lock command, and in addition locks the control address or addresses that correspond to the specified address. In this manner, both N bit and M bit file lock commands may access the same M bit locks, assuring that proper locking is maintained between computer programs that use N bit locks and computer programs that use M bit locks.
The foregoing and other features and advantages of the invention will be apparent from the following more particular description of preferred embodiments of the invention, as illustrated in the accompanying drawings.


REFERENCES:
patent: 5276867 (1994-01-01), Kenley et al.
patent: 5285528 (1994-02-01), Hart
patent: 5287521 (1994-02-01), Nitta et al.
patent: 5319780 (1994-06-01), Catino et al.
patent: 5327556 (1994-07-01), Mohan et al.
patent: 5414839 (1995-05-01), Joshi
patent: 5414840 (1995-05-01), Rengarajan et al.
patent: 5485607 (1996-01-01), Lomet et al.
patent: 5537645 (1996-07-01), Henson et al.
patent: 5551027 (1996-08-01), Choy et al.
patent: 5555388 (1996-09-01), Shaughnessy
patent: 5692178 (1997-11-01), Shaughnessy
patent: 5761659 (1998-06-01), Bertoni

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

Apparatus and method for file locking for computer programs... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Apparatus and method for file locking for computer programs..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Apparatus and method for file locking for computer programs... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3147844

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