At 09:14 PM 3/18/02 -0500, you wrote:
Hi Sumit,
I think what you need to use is while(condition){wait();} and notify(). You
can find these on the java thread programming topic.
There is a book called "java thread programming" by Paul Hyde. I have done
these kinds of programming before. If you interested,
you can check the address: www.systemflow.com/minesim/model/minesim.html.
Shubin.
>Hi Everyone,
>
>Need your help... !
>
>Most of you must be familiar with the Semaphore, monitors and Condition
>Variables. I'm taking software engineering class and the professor asked
>us to use condition variables. I coundn't find any reference to this type
>of class in the Java platform documentation.
>
>I did took a class last semester, related to concurrent programming and in
>that class we wrote some classes which we called Semaphore, Monitors,
>countingSemaphore and a final class Condition variables which uses the
>same Semaphore class internally.
>
>The professor suggested me that i shouldn't use the Semaphores, but should
>use condition variables... now that is confussing me..
>
>
>Any suggestions.. .
>
>Thanks for help in advance.
>
>Sumit
>Sr. System Analyst
>
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".