How to run: 1. compile CallBack.java 2. compile the native code into a shared lib cl /Ie:\j2sdk1.4.0\include /Ie:\j2sdk1.4.0\include\win32 /LD /FeMyImpOfCallBack.dll CallBack.c 3. run: java CallBack
A Waiter relays an order Object to a Producer, waits in an independent thread during the production, and then delivers the result using a Consumer CallBack method.