java Programming Glossary: readq
Producer/Consumer threads using a Queue http://stackoverflow.com/questions/2332537/producer-consumer-threads-using-a-queue safe written in house class public static Queue Object readQ new Queue Object 100 public static void enqueue Object object.. public static void enqueue Object object do some stuff readQ.add object public static Object dequeue do some stuff return.. object public static Object dequeue do some stuff return readQ.get OR Main class public class SomeApp Queue Object readQ private..
|