Originally posted by Henry Wong:
because quite frankly, by the time we get to it, there were many similar options to semaphores... sorry.
Could you please mention a bit on what you mean by "there were many similar options to semaphores"? Does it mean "Since JDK 1.5 provides the complete solution, there is no need for the book to explain about it" or something? Or do you mean "Since we can refer to semaphores implementation in other books, your book just skip those simple implementations"?
Producer-consumer got a very detailed discussion in the collection chapter, as using collections is a great way to hide all the thread related issues in decoupling producers from consumers.
One question, henry. Sorry for so many questions...
Does that collection chapter, which contains info about implementing Producer-Consumer stuff, discusses both multiple producers-consumers issue and single producer-consumer issue? Thanks for your kind responses to my queries...
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0