Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

how do i use Threads wait and notify. thread A sees if the semaphore is =0. if yes, wait(). customer will increment semaphore and wake thread A up . notify() ? how do i synchronize this? WHAT AM I DOING? AHH

OpenStudy (espex):

Try this: http://www.java-samples.com/showtutorial.php?tutorialid=306

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!