Revised and expanded to cover Java 2, Java Threads 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 овълъ The books pays special attention to threading issues with Swing as well as problems like deadlock, race condition, and starvation, to help you write codewithout 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. Художник:ISBN 1565924185. |