Chapter 17. Examples

  • Threads and Windows

  • Displaying Things for a Moment (Memory.java)

  • Socket Server (Master/Slave Version)

  • Socket Server (Producer/Consumer Version)

  • Making a Native Call to pthread_setconcurrency()

  • Actual Implementation of POSIX Synchronization

  • A Robust, Interruptible Server

  • Disk Performance with Java

  • Other Programs on the Web

In which several complete programs are presented. The details and issues surrounding the way they use threads are discussed, and references to other programs on the Net are made.

This chapter contains several example programs that use Java threads. The examples use threads to demonstrate different concepts from previous chapters. All the example code (except for the JNI example) has been compiled and run on Solaris, ...

Get Multithreaded Programming with JAVA™ Technology now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.