Safe language static variables initialization in a multitasking system
Abstract
A system and method are provided for thread-safe initialization of static variables in a multitasking system. In one embodiment, the static fields of a class may be “virtualized” such that each application that utilizes the class has its own copy of static fields. Each separate copy of the static fields is initialized only once. Instructions for performing the initialization may be embedded in a class constructor. The class constructor may be executed only once for each separate copy of the static fields. A template class may be loaded for each separate copy of the static fields when a copy of the static fields is sought to be initialized. The template class may include a static initializer for one of the separate copies of the static fields. The static initializer may be executed once for each separate copy of the static fields.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for sharing a class among a plurality of applications in a multitasking computer system, the method comprising: removing one or more static fields from the class; creating a separate copy of the one or more static fields for each of the plurality of applications that utilizes the class, wherein each of the separate copies corresponds to one of the plurality of applications; creating one or more access methods for the one or more static fields, wherein the access methods are operable to access the corresponding separate copy of the one or more static fields based upon the identity of t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (4)
- "Application Isolation in the Java Virtual Machine", Czajkowski, ACM Conference on Object-Oriented Programming, Systems, Languages, and Applications, Minneapolis, MN, Oct., 2000.
- "Fixing the Java Memory Model", Pugh, ACM 1999 Java Grande Conference, ACM, San Francisco, CA, Jun. 1999.
- The Java(TM) Virtual Machine Specification, Second Edition, Lindholm, et al, Addison-Wesley, Reading, MA, Apr. 1999, pp. 155-170.
- Zalzala et al. "MTGP: a multithreaded Java tool for generic programming applications" 1999 IEEE, pp. 904-912.*