Thinking of communication between the reader thread art of java concurrent programming,

Long time no see book of java, and tonight a rare look two pursuits, although on the basis of these things usually do not have access, since the frame level already helped us a good package of all the methods, we stand a giant jar package says our logic code, but also look very interesting.

Come to the question, today turned a bit books, read a communication thread, nothing less than a few points:
1: volatile keyword synchronize with this even, skip
2, waiting notification mechanism
3, piped input / output streams
. 4, the Thread.join
. 5, the use of the ThreadLocal

In fact, beginning to see the title of this thread of communication, I started to think of concurrent threads package the following exchange variables exchanger

Well, I think it is now encapsulated over fishes.

I can not do, is crooked B station with an hour, can not be written! Goodbye! Next come back up (⊙o⊙) ...

Guess you like

Origin www.cnblogs.com/wengshuhang/p/11588623.html