codebytes: Java Concurrency : Usage of BlockingQueue class
BlockingQueue allows you to put objects into it and take out objects one at a time. So you don't need to worry about concurrent threads' synchronization for queue access. If there are no elements, the accessing thread simply blocks and resumes when elements are added for the thread to access.Read full article from codebytes: Java Concurrency : Usage of BlockingQueue class
No comments:
Post a Comment