Electrical computers and digital data processing systems: input/ – Access locking
Reexamination Certificate
2000-03-30
2003-11-18
Ray, Gopal C. (Department: 2181)
Electrical computers and digital data processing systems: input/
Access locking
C703S015000, C703S023000, C703S026000, C703S027000, C709S241000, C709S202000, C713S152000, C713S152000, C713S152000, C713S152000
Reexamination Certificate
active
06651123
ABSTRACT:
TECHNICAL FIELD
The present invention relates in general to data processing systems, and in particular, to a method and system for handling locking protocol disparities between an application program and an operation system on which the application program is installed.
BACKGROUND INFORMATION
There are many operating systems, for example OS/2, WINDOWS, NT, UNIX and AIX. If an application was written to execute on one operating system, all processes and operations that the application program can execute may not be compatible with the operating system to which the application program is ported. In the past, if it was desired to have an application program ported to operating systems on which it was not fully compatible, then portions of the software had to be rewritten specifically for each different operating system. Rewriting existing software code is time consuming and a rewrite of a debugged and operational application program may cause errors. File management is one of those processes that may differ between operating systems. Operating systems have routines that are used to lock and unlock files. AIX, for example has file locking and unlocking routines that support operations that are not compatible with NT and OS/2. An exemplary application program, written on an NT or OS/2 platform and subsequently ported to AIX, may cause file corruption and serialization errors if the differences in file locking and unlocking are not handled correctly.
File corruption may occur when multiple applications try to access and write to files that are not properly locked. Non-serial operations errors may occur when a serial operation on a file is allowed without proper locking, for example, one application may access data, modify it, and then not return its result before another application accesses the same data. In this case, after both applications return their results, the data stored in the file is now in error. In this example, a serial operation cannot be performed on the file without proper locking in effect.
There is therefore a need for a method for handling the problem of incompatibilities of an application program when it is ported to run on different operating systems without rewriting the application program.
SUMMARY OF THE INVENTION
The present invention discloses the use of a file request emulator that may be integrated within an application program that may be ported to various different Operating Systems (OS).
Operating Systems have processes commonly executed by a variety of different Application programs, however, these processes may contain features all of which are not compatible within the Operating Systems. File locking is one of those processes that many Application programs use, however, one operating system may allow more complex file locking than another. If an Application program was written on one OS platform and then ported to another, the Application program may be able to issue file locking requests that may result in corrupted files. The present invention uses a file request emulator and in particular a file locking emulator between the Application program and an OS. The file locking emulator determines the compatibility of file locking requests between a given ported application and an operating system. Only valid requests are passed to the OS, invalid or incompatible requests result in returned error statements which may also contain recovery options available to a user of the application program. In this manner, only the file request emulator has to have code changes for different Operating Systems and the tested code of the Application program can remain unchanged.
The foregoing has outlined rather broadly the features and technical advantages of the present invention in order that the detailed description of the invention that follows may be better understood. Additional features and advantages of the invention will be described hereinafter which form the subject of the claims of the invention.
REFERENCES:
patent: 5202971 (1993-04-01), Henson et al.
patent: 5226159 (1993-07-01), Henson et al.
patent: 5303368 (1994-04-01), Kotaki
patent: 5537645 (1996-07-01), Henson et al.
patent: 5566319 (1996-10-01), Lenz
patent: 5615373 (1997-03-01), Ho
patent: 5892954 (1999-04-01), Tomas et al.
patent: 5926631 (1999-07-01), McGarvey
patent: 6091897 (2000-07-01), Yates et al.
patent: 6104868 (2000-08-01), Peters et al.
patent: 6151703 (2000-11-01), Crelier
patent: 6502237 (2002-12-01), Yates et al.
“Algorithm to Support the Emulation of UNIX Popen() and Pclose() System Calls in OS/2,”IBM Technical Disclosure Bulletin, vol. 38 No. 01, Jan. 1995, pp. 213-216.
“Abstracted File Lock Manager to Support the Emulation of UNIX FCNTL() and LOCKFX() System Calls in OS/2,”IBM Technical Disclosure Bulletin, vol. 38 No. 01, Jan. 1995, pp. 387-391.
3.6 zApp DOS, Windows, Windows NT, OS/2 Portable Class Library. Http://www.desy.de/user/projects/C++/projects/zapp.html.*
MIT Computer Architecture Group, Professor Rinard (Operating Systems Lectrue Notes). Http://www.cag.lcs.mit.edu/~rinard.*
The National Scalable Cluster Project, University of Pannsylvania. AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts. http:/
scp.upenn.edu/aix4.3html/aixprggd/kernextc/lock_kernsvcs.htm.*
Tim. Lindholm, “The Java Virtual Machine Specification”, 1999, Sun MicroSystem, 2nd Ed., http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html.*
James L. Peterson, Abraham Silberschatz, “Operating System Concepts”, 1985, Addison Westley, 2nd Ed., pp 39-50.
Hutchison Robert Brian
Shih Stuart Te-Hui
International Business Machines - Corporation
King Justin
Ray Gopal C.
Schelkopf J. Bruce
Winstead Sechrist & Minick
LandOfFree
File system locking does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with File system locking, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and File system locking will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-3154730