Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Steve
Steve
Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
karthikeyan ts wrote:
Whether each thread will look the condition. Once the thread is started, then first time only it will look the condition.
karthikeyan ts wrote:Hi Steve,
Thanks for the answer. I've one doubt in the code. Could you explain.
Whether each thread will look the condition. Once the thread is started, then first time only it will look the condition.
Also could you please if all the 4 threads are running in different JVMs, then how to achieve the same result.
One point i know that if cross JVM Thread program, common flat file can be used. but where we can place the common flat file. How the threads running in different JVMs will read/write the flat file. whether using normal File IO stream?
Steve
Consider Paul's rocket mass heater. |