Originally posted by xy zhang:
but to a big website, the threads will be interrupted due to the famous Java heap size, outofmemory issue. I ever tried to set the -Xmx, but it seems question can not be solved.
Originally posted by janki tangeda:
I agree that the t1 thread is invoking a block synchronised on sa but that block is in a different class i.e class A???
Originally posted by Rick O'Shay:
The emphasis is important. If B extends A it has access to String foo. If C extends B, String foo is private for all intents and purposes. C will not have access to String foo even.
Originally posted by Javeo Lineo:
Can you help because my I need to change the something regarding Threads, my friend told me not to use "while loop" but instead try to use a "Timer", but I'm not familiar with it...
Originally posted by Stan James:
When you add an item to queue you notifyAll() that something has arrived. That will cause an InterruptedException in *all* of your worker threads.