Java Threads (Java Series) - Softcover

Scott-oaks-henry-wong-mike-loukides

  • 3.59 out of 5 stars
    81 ratings by Goodreads
 
9781565922167: Java Threads (Java Series)

Synopsis

This Java 1.1 programming book shows you how to take full advantage of Java's thread facilities: where to use threads to increase efficiency, how to use them effectively, and how to avoid common mistakes. It thoroughly covers the Thread and ThreadGroup classes, the Runnable interface, and the language's synchronized operator, as well as problems like deadlock, race condition, and starvation to help you write code without hidden bugs. In addition, Java Threads shows you how to extend Java's thread primitives. A thorough discussion of thread scheduling concludes by developing a CPUSchedule class that shows you how to implement your own scheduling policy. Other extended examples include classes that implement reader/writer locks, general locks, locks at arbitrary scope, and asynchronous I/O. In short, Java Threads covers everything you need to know about threads, from the simplest animation applet to the most complex applications. If you plan to do any serious work in Java, you will find this book invaluable. Examples available online.

"synopsis" may belong to another edition of this title.

Reviews

O'Reilly books have a reputation among programmers for providing some of the best technical information for professionals. No exception, these three web-related books will only enhance O'Reilly's reputation. JavaScript is not Java, but it is very useful because JavaScript code does not need to be compiled and the scripts can be embedded directly into an HTML document. Flanagan's work is an excellent book for programmers interested in learning it quickly. Grand, meanwhile, provides an exceptionally clear discussion of Java itself that is particularly useful for a working programmer moving from C++ to Java. Threads are what makes Java a particularly useful language for multiprocessing?the ability to appear to do more than one thing at a time?which is what the Internet is all about. The tricky part of threads is that the concept is new for most users. Oaks offers a very clear discussion of how to spawn a process, when to spawn, and how to synchronize and schedule it, all illustrated with good network examples.
Copyright 1997 Reed Business Information, Inc.

"About this title" may belong to another edition of this title.