When Multiple Threads Might Not Be Good

Chapter 1 - Introduction to Threads

Java Thread Programming
Paul Hyde
  Copyright 1999 Sams Publishing

Javas Built-in Thread Support
One of the great things about Java is that it has built-in support for writing multithreaded programs. Javas designers knew the value of multithreaded programming and wisely decided to include support for threads directly in the core of Java. Chapter 7, Concurrent Access to Objects and Variables, explores how in the Java language, the synchronized keyword is used to lock objects and classes to control concurrent access to data. The classes Thread and ThreadGroup are right in the core API in the java.lang package. The superclass of all classes in Java, Object , has inter-thread communication support built in through the wait() and notify() methods (see Chapter 8, Inter-thread Communication ). Even if an underlying operating system does not support the concept of threads, a well-written JavaVM could simulate a multithreaded environment. In Java, thread support was not an afterthought, but included by design from the beginning.

Toc


Java Thread Programming
Java Thread Programming
ISBN: 0672315858
EAN: 2147483647
Year: 2005
Pages: 149
Authors: Paul Hyde

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net