﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><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>BlogJava-hk2000c技术专栏-最新评论</title><link>http://www.blogjava.net/hk2000c/CommentsRSS.aspx</link><description>技术源于哲学，哲学来源于生活

关心生活，关注健康，关心他人
</description><language>zh-cn</language><pubDate>Mon, 21 Apr 2014 13:42:24 GMT</pubDate><lastBuildDate>Mon, 21 Apr 2014 13:42:24 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 寻找好的JSP BBS 源码项目</title><link>http://www.blogjava.net/hk2000c/archive/2013/06/11/65187.html#400479</link><dc:creator>sadf</dc:creator><author>sadf</author><pubDate>Tue, 11 Jun 2013 06:23:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2013/06/11/65187.html#400479</guid><description><![CDATA[ sdf <img src ="http://www.blogjava.net/hk2000c/aggbug/400479.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">sadf</a> 2013-06-11 14:23 <a href="http://www.blogjava.net/hk2000c/archive/2013/06/11/65187.html#400479#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 改造 commons validator [未登录]</title><link>http://www.blogjava.net/hk2000c/archive/2012/08/29/155892.html#386536</link><dc:creator>123</dc:creator><author>123</author><pubDate>Wed, 29 Aug 2012 09:42:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2012/08/29/155892.html#386536</guid><description><![CDATA[123<img src ="http://www.blogjava.net/hk2000c/aggbug/386536.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">123</a> 2012-08-29 17:42 <a href="http://www.blogjava.net/hk2000c/archive/2012/08/29/155892.html#386536#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: java 多线程 wait() 以及 notirfy() 简析</title><link>http://www.blogjava.net/hk2000c/archive/2012/06/18/168761.html#381024</link><dc:creator>avi9111</dc:creator><author>avi9111</author><pubDate>Mon, 18 Jun 2012 09:48:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2012/06/18/168761.html#381024</guid><description><![CDATA[Think in Java中的解释:&quot;wait()允许我们将线程置入“睡眠”状态，同时又“积极”地等待条件发生改变.而且只有在一个notify()或notifyAll()发生变化的时候，线程才会被唤醒，并检查条件是否有变.&quot;<br><br>明显是翻译问题,狗屁不通,有没原文啊？<img src ="http://www.blogjava.net/hk2000c/aggbug/381024.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">avi9111</a> 2012-06-18 17:48 <a href="http://www.blogjava.net/hk2000c/archive/2012/06/18/168761.html#381024#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: java 多线程 wait() 以及 notirfy() 简析</title><link>http://www.blogjava.net/hk2000c/archive/2011/11/24/168761.html#364746</link><dc:creator>呼唤</dc:creator><author>呼唤</author><pubDate>Thu, 24 Nov 2011 08:54:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2011/11/24/168761.html#364746</guid><description><![CDATA[代码确实有问题。是不会跑到<br> System.out.println(&quot;Completed.Now back to main thread&quot;);<br>这句话的。<img src ="http://www.blogjava.net/hk2000c/aggbug/364746.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">呼唤</a> 2011-11-24 16:54 <a href="http://www.blogjava.net/hk2000c/archive/2011/11/24/168761.html#364746#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: java 多线程 wait() 以及 notirfy() 简析</title><link>http://www.blogjava.net/hk2000c/archive/2011/06/30/168761.html#353432</link><dc:creator>bokix</dc:creator><author>bokix</author><pubDate>Thu, 30 Jun 2011 05:44:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2011/06/30/168761.html#353432</guid><description><![CDATA[这代码有问题<img src ="http://www.blogjava.net/hk2000c/aggbug/353432.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">bokix</a> 2011-06-30 13:44 <a href="http://www.blogjava.net/hk2000c/archive/2011/06/30/168761.html#353432#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: java 多线程 wait() 以及 notirfy() 简析</title><link>http://www.blogjava.net/hk2000c/archive/2011/02/24/168761.html#345037</link><dc:creator>haikou coder</dc:creator><author>haikou coder</author><pubDate>Thu, 24 Feb 2011 02:04:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2011/02/24/168761.html#345037</guid><description><![CDATA[楼主文字写的很好，但是否是疏忽，这个代码却写得误人子弟了：<br><br>b.start();<br>System.out.println(&quot;b is start....&quot;);<br>synchronized(b){<br>...<br>}<br><br>因为b.start的时候，就占用了以自己本身为锁的锁（b的run方法里面有 synchronized(this)），所以在上面的代码中，synchronized(b)里面的同步块代码在线程b执行完毕前是不会被执行的（注意：线程b中没没有this.wait()），所以，在上面的代码中，同步块代码得到执行的机会时，b线成必定已经执行完毕，因此，在同步快中让b.wait后，没有其他线程会通知其醒来，因此b.wait后面的代码永远都没有机会得到执行，&quot;Completed.Now back to main threadmain”永远都不会被输出，main方法永远不能退出，这是典型的死锁。<br>为了保证理论的严谨性，我对以上程序进行运行，确实如此。<br><br>但还有一个理论上可能存在的情况：就是同步快synchronized(b){...}比线程b先一步得到同步锁，即同步块synchronized(b){...}比ThreadB的run方法先运行，这样程序就不会死锁，因为理论上考虑到cpu速度，线程的运行前后是随机的，是存在这种可能，但我实际运行起来，总是线程b先得到锁，估计b.start先在前面一行，cpu要让下面的同步块先得到锁，难度还是非常大。<img src ="http://www.blogjava.net/hk2000c/aggbug/345037.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">haikou coder</a> 2011-02-24 10:04 <a href="http://www.blogjava.net/hk2000c/archive/2011/02/24/168761.html#345037#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: spring调用Oracle存储过程,并返回结果集的完整实例 </title><link>http://www.blogjava.net/hk2000c/archive/2010/09/26/161082.html#332972</link><dc:creator>asdtiang</dc:creator><author>asdtiang</author><pubDate>Sun, 26 Sep 2010 08:39:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2010/09/26/161082.html#332972</guid><description><![CDATA[学习标记下<img src ="http://www.blogjava.net/hk2000c/aggbug/332972.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">asdtiang</a> 2010-09-26 16:39 <a href="http://www.blogjava.net/hk2000c/archive/2010/09/26/161082.html#332972#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: java 多线程 wait() 以及 notirfy() 简析</title><link>http://www.blogjava.net/hk2000c/archive/2010/07/14/168761.html#326135</link><dc:creator>googel</dc:creator><author>googel</author><pubDate>Wed, 14 Jul 2010 13:49:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2010/07/14/168761.html#326135</guid><description><![CDATA[很强。。。。  通了<img src ="http://www.blogjava.net/hk2000c/aggbug/326135.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">googel</a> 2010-07-14 21:49 <a href="http://www.blogjava.net/hk2000c/archive/2010/07/14/168761.html#326135#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: java 多线程 wait() 以及 notirfy() 简析</title><link>http://www.blogjava.net/hk2000c/archive/2010/05/28/168761.html#322109</link><dc:creator>万其</dc:creator><author>万其</author><pubDate>Fri, 28 May 2010 01:53:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2010/05/28/168761.html#322109</guid><description><![CDATA[我也是的。好@LILIY<br><img src ="http://www.blogjava.net/hk2000c/aggbug/322109.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">万其</a> 2010-05-28 09:53 <a href="http://www.blogjava.net/hk2000c/archive/2010/05/28/168761.html#322109#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: ActiveMQ 实践之路(二) 使用Queue或者Topic发送/接受消息 </title><link>http://www.blogjava.net/hk2000c/archive/2009/10/21/161069.html#299140</link><dc:creator>READ</dc:creator><author>READ</author><pubDate>Wed, 21 Oct 2009 01:08:00 GMT</pubDate><guid>http://www.blogjava.net/hk2000c/archive/2009/10/21/161069.html#299140</guid><description><![CDATA[确实如楼上所说...<img src ="http://www.blogjava.net/hk2000c/aggbug/299140.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hk2000c/" target="_blank">READ</a> 2009-10-21 09:08 <a href="http://www.blogjava.net/hk2000c/archive/2009/10/21/161069.html#299140#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>