Patent
1997-09-29
1998-12-22
Oberley, Alvin E.
395676, 395672, G06F 940
Patent
active
058527311
ABSTRACT:
The present invention is a computer program product to avoid static variable initialization and reference conflicts in a multi-threaded computer system. There are four major problems that arise with computer programs containing static variable references and static variable initializations on a computer system with a multi-threaded operating system: (1) premature references made on an uninitialized static variable; (2) side effects caused by initialization competition among threads; (3) multiple initialization of the same static variable; and (4) server control of static variable reference and initialization. Each of these four problems is eliminated by the system and method of this invention. The invention operates by locking the CPU during identification of the first thread seeking to initiate a static variable operation, maintaining all other threads in a wait state, and unlocking the CPU thus releasing the waiting threads from their wait state. Another component of the invention provides an additional control mechanism to invoke the disclosed static variable controller to eliminate potential static variable conflicts among competing threads.
REFERENCES:
patent: 5404521 (1995-04-01), Murray
patent: 5421013 (1995-05-01), Smith
"The O Programming Language" by Brain W. Kernighan Prentice Hall, 1988.
"Programming under Mach" by Joseph Boykin, Addison -Wesley Publishing Company 1993.
"Advanced Windows NT", Jeffrey Richter, Microsoft Press, 1993.
Korenshtein Roni
Wang I-Shin Andy
International Business Machines - Corporation
Johnson Prentiss W.
Lao Sue
Oberley Alvin E.
LandOfFree
Computer program product for synchronizing static variable initi does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Computer program product for synchronizing static variable initi, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Computer program product for synchronizing static variable initi will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-2055022