Thread Safety in Java Cocurrent Programming
Kunpeng Li
Abstract
Kunpeng Li
Abstract
The broad application of Java in cocurrent program has brought new challenges to programmers. In order to develop a desirable software under multi-threaded condition, one should consider the thread safety of a class. The paper illustrated the concept of thread safety by using a Java program, and introduced the levels of thread safety that a class can support. Finally, the article summarized several useful principles in construction of thread-safe class.
A significance statement is not available in the OpenAlex record.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
The broad application of Java in cocurrent program has brought new challenges to programmers. In order to develop a desirable software under multi-threaded condition, one should consider the thread safety of a class. The paper illustrated the concept of thread safety by using a Java program, and introduced the levels of thread safety that a class can support. Finally, the article summarized several useful principles in construction of thread-safe class.
Key concepts: Computer science, Thread (computing), Java, Java concurrency, Programming language, Operating system, Real time Java, Software