<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>诗剑书生的专栏 - Java 多线程设计模式</title><link>http://blog.csdn.net/axman/category/231455.aspx</link><description>基于多线程编程的模式设计知识</description><dc:language>zh-CN</dc:language><lastUpdateTime>Fri, 21 Mar 2008 10:25:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>axman</dc:creator><title>集合类参数的传递</title><link>http://blog.csdn.net/axman/archive/2007/09/17/1787887.aspx</link><pubDate>Mon, 17 Sep 2007 11:02:00 GMT</pubDate><guid>http://blog.csdn.net/axman/archive/2007/09/17/1787887.aspx</guid><wfw:comment>http://blog.csdn.net/axman/comments/1787887.aspx</wfw:comment><comments>http://blog.csdn.net/axman/archive/2007/09/17/1787887.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/axman/comments/commentRss/1787887.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1787887</trackback:ping><description>对于集合类参数,如果传入方法后在方法外重新赋值参数本身,这和其它引用参数一样不会影响方法内的参数.但如果对集合中元素重新赋值则改变了方法内的集合中的元素,因为方法外和方法内的集合就是本身是同一对象.&lt;img src ="http://blog.csdn.net/axman/aggbug/1787887.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>axman</dc:creator><title>多线程编程的设计模式 不变模式(二)</title><link>http://blog.csdn.net/axman/archive/2006/10/25/1350401.aspx</link><pubDate>Wed, 25 Oct 2006 11:50:00 GMT</pubDate><guid>http://blog.csdn.net/axman/archive/2006/10/25/1350401.aspx</guid><wfw:comment>http://blog.csdn.net/axman/comments/1350401.aspx</wfw:comment><comments>http://blog.csdn.net/axman/archive/2006/10/25/1350401.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/axman/comments/commentRss/1350401.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1350401</trackback:ping><description>	不变模式(Immutable Pattern)顾名思义,它的状态在它的生命周期内是永恒的(晕,永恒的日月星晨,对象如人,
太渺小,谈不上永恒!),不会改变的.对于其中的不变类(Immutable Class),它的实例可以在运行期间保持状态永远不会被
改变,所以不需要采取共享互斥机制来保护,如果运用得当可以节省大量的时间成本.

	请注意上面这段话,不变模式其中的不变类,说明不变类只是不变模式中一个组成部分,不变类和与之相辅的可变
类,以及它们之间的关系才共同构成不变模式!所以在涉及不变模式的时候一定要研究一个类是不变的还是可变的(Mutable).
在jdk中的String类和StringBuffer类就组成了一个不变模式.&lt;img src ="http://blog.csdn.net/axman/aggbug/1350401.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>axman</dc:creator><title>多线程编程的设计模式 不变模式(一)</title><link>http://blog.csdn.net/axman/archive/2006/09/29/1305456.aspx</link><pubDate>Fri, 29 Sep 2006 10:14:00 GMT</pubDate><guid>http://blog.csdn.net/axman/archive/2006/09/29/1305456.aspx</guid><wfw:comment>http://blog.csdn.net/axman/comments/1305456.aspx</wfw:comment><comments>http://blog.csdn.net/axman/archive/2006/09/29/1305456.aspx#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://blog.csdn.net/axman/comments/commentRss/1305456.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1305456</trackback:ping><description>字符串类是不变模式最典型的代表&lt;img src ="http://blog.csdn.net/axman/aggbug/1305456.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>axman</dc:creator><title>多线程编程的设计模式 临界区模式(三) </title><link>http://blog.csdn.net/axman/archive/2006/09/07/1189537.aspx</link><pubDate>Thu, 07 Sep 2006 12:18:00 GMT</pubDate><guid>http://blog.csdn.net/axman/archive/2006/09/07/1189537.aspx</guid><wfw:comment>http://blog.csdn.net/axman/comments/1189537.aspx</wfw:comment><comments>http://blog.csdn.net/axman/archive/2006/09/07/1189537.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/axman/comments/commentRss/1189537.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1189537</trackback:ping><description>临界区模式 Critical Section Pattern 是指在一个共享范围中只让一个线程执行的模式.
它是所有其它多线程设计模式的基础,所以我首先来介绍它.&lt;img src ="http://blog.csdn.net/axman/aggbug/1189537.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>axman</dc:creator><title> 多线程编程的设计模式 临界区模式(二)</title><link>http://blog.csdn.net/axman/archive/2006/09/07/1189529.aspx</link><pubDate>Thu, 07 Sep 2006 12:17:00 GMT</pubDate><guid>http://blog.csdn.net/axman/archive/2006/09/07/1189529.aspx</guid><wfw:comment>http://blog.csdn.net/axman/comments/1189529.aspx</wfw:comment><comments>http://blog.csdn.net/axman/archive/2006/09/07/1189529.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/axman/comments/commentRss/1189529.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1189529</trackback:ping><description>临界区模式 Critical Section Pattern 是指在一个共享范围中只让一个线程执行的模式.
它是所有其它多线程设计模式的基础,所以我首先来介绍它.&lt;img src ="http://blog.csdn.net/axman/aggbug/1189529.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>axman</dc:creator><title>多线程编程的设计模式 临界区模式(一)</title><link>http://blog.csdn.net/axman/archive/2006/08/28/1130690.aspx</link><pubDate>Mon, 28 Aug 2006 08:01:00 GMT</pubDate><guid>http://blog.csdn.net/axman/archive/2006/08/28/1130690.aspx</guid><wfw:comment>http://blog.csdn.net/axman/comments/1130690.aspx</wfw:comment><comments>http://blog.csdn.net/axman/archive/2006/08/28/1130690.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/axman/comments/commentRss/1130690.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1130690</trackback:ping><description>临界区模式 Critical Section Pattern 是指在一个共享范围中只让一个线程执行的模式.
它是所有其它多线程设计模式的基础,所以我首先来介绍它.&lt;img src ="http://blog.csdn.net/axman/aggbug/1130690.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>axman</dc:creator><title>Java 多线程编程中的设计模式 开篇</title><link>http://blog.csdn.net/axman/archive/2006/08/23/1108140.aspx</link><pubDate>Wed, 23 Aug 2006 10:00:00 GMT</pubDate><guid>http://blog.csdn.net/axman/archive/2006/08/23/1108140.aspx</guid><wfw:comment>http://blog.csdn.net/axman/comments/1108140.aspx</wfw:comment><comments>http://blog.csdn.net/axman/archive/2006/08/23/1108140.aspx#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://blog.csdn.net/axman/comments/commentRss/1108140.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1108140</trackback:ping><description> 模式就是在某种特定环境中,经常多次发生的问题的通用解决方案.

环境,或说背景,用Java术语说是Context.
问题里面还包含可以解决问题的外力条件(force),多个外力条件常常表现为"鱼与熊掌"的关系.

 尽管目前真正介绍模式的书并不多,但在可见的介绍模式的书中,可以看到多数就是一本
模式词典.设计模式中真正的知识在于模式语言.

 模式语言是模式的集合,集合的意思是集而合之,不是聚合.
 把多个相关的,相互作用的模式集而合之,并清楚地描述它们之间的关系.就是模式语言.
&lt;img src ="http://blog.csdn.net/axman/aggbug/1108140.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>