Thread Buffer « Thread « Java Tutorial

10.14.Thread Buffer
10.14.1.Two threads manipulating an unsynchronized buffer