﻿<?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-陈朋奕和谢仍明的博客-随笔分类-随便写写（比较有用，值得看看）</title><link>http://www.blogjava.net/chenpengyi/category/3026.html</link><description>MySQL资料，Java技术，管理思想，博弈论，Ajax，XP极限编程，物流知识</description><language>zh-cn</language><lastBuildDate>Thu, 01 Nov 2007 07:40:03 GMT</lastBuildDate><pubDate>Thu, 01 Nov 2007 07:40:03 GMT</pubDate><ttl>60</ttl><item><title>使用Future模式完成耗时的背景作业[JDK1.5 Concurrency]</title><link>http://www.blogjava.net/chenpengyi/archive/2007/11/01/157464.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 01 Nov 2007 05:11:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2007/11/01/157464.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/157464.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2007/11/01/157464.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/157464.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/157464.html</trackback:ping><description><![CDATA[<p>
				<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
						<font size="4">
								<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
										<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
												<br />个人理解</span>
										<span lang="EN-US">
												<font face="Times New Roman">Future</font>
										</span>
										<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模式就是在主线程中当需要进行比较耗时的作业，但不想阻塞主线程的作业时，将耗时作业交由</span>
										<span lang="EN-US">
												<font face="Times New Roman">Future</font>
										</span>
										<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对象在后台中完成，当主线程将来（这个</span>
										<span lang="EN-US">
												<font face="Times New Roman">Future</font>
										</span>
										<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的意义也就体现在这里了）需要时即可通过</span>
										<span lang="EN-US">
												<font face="Times New Roman">Future</font>
										</span>
										<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对象获得已经作业对象。</span>
										<span lang="EN-US">
												<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
												<o:p>
														<font face="Times New Roman"> </font>
												</o:p>
										</span>
								</span>
						</font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这里写了一个简单的例子来说明这种模式，其实写这个例子主要是自己想熟悉一下</span>
				<span lang="EN-US">
						<font face="Times New Roman">JDK5</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</span>
				<span lang="EN-US">
						<font face="Times New Roman">concurrency</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">包中</span>
				<span lang="EN-US">
						<font face="Times New Roman">FutureTask</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的用法了。例子模拟的是一个会计算账的过程，主线程中已经获得其他帐户的总额了，为了不让主线程等待</span>
				<span lang="EN-US">
						<font face="Times New Roman">PrivateAccount</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">返回而启用新的线程去处理，并使用</span>
				<span lang="EN-US">
						<font face="Times New Roman">FutureTask</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对象来监控，最后需要计算总额的时候再尝试去获得</span>
				<span lang="EN-US">
						<font face="Times New Roman">PrivateAccount</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的信息。</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font face="Times New Roman"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码如下：</span>
		</p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<span style="COLOR: #008080"> 1</span>
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #0000ff">package</span>
				<span style="COLOR: #000000"> testCallable;<br /></span>
				<span style="COLOR: #008080"> 2</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080"> 3</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">import</span>
				<span style="COLOR: #000000"> java.util.Random;<br /></span>
				<span style="COLOR: #008080"> 4</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">import</span>
				<span style="COLOR: #000000"> java.util.concurrent.Callable;<br /></span>
				<span style="COLOR: #008080"> 5</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">import</span>
				<span style="COLOR: #000000"> java.util.concurrent.ExecutionException;<br /></span>
				<span style="COLOR: #008080"> 6</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">import</span>
				<span style="COLOR: #000000"> java.util.concurrent.FutureTask;<br /></span>
				<span style="COLOR: #008080"> 7</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080"> 8</span>
				<span style="COLOR: #000000">
						<img id="Codehighlighter1_175_203_Open_Image" onclick="this.style.display='none'; Codehighlighter1_175_203_Open_Text.style.display='none'; Codehighlighter1_175_203_Closed_Image.style.display='inline'; Codehighlighter1_175_203_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_175_203_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_175_203_Closed_Text.style.display='none'; Codehighlighter1_175_203_Open_Image.style.display='inline'; Codehighlighter1_175_203_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				</span>
				<span id="Codehighlighter1_175_203_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/** */</span>
				<span id="Codehighlighter1_175_203_Open_Text">
						<span style="COLOR: #008000">/**</span>
						<span style="COLOR: #008000">
								<br />
						</span>
						<span style="COLOR: #008080"> 9</span>
						<span style="COLOR: #008000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /> * </span>
						<span style="COLOR: #808080">@author</span>
						<span style="COLOR: #008000"> chenpengyi<br /></span>
						<span style="COLOR: #008080">10</span>
						<span style="COLOR: #008000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /> </span>
						<span style="COLOR: #008000">*/</span>
				</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">11</span>
				<span style="COLOR: #000000">
						<img id="Codehighlighter1_236_1451_Open_Image" onclick="this.style.display='none'; Codehighlighter1_236_1451_Open_Text.style.display='none'; Codehighlighter1_236_1451_Closed_Image.style.display='inline'; Codehighlighter1_236_1451_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_236_1451_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_236_1451_Closed_Text.style.display='none'; Codehighlighter1_236_1451_Open_Image.style.display='inline'; Codehighlighter1_236_1451_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">public</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #0000ff">class</span>
				<span style="COLOR: #000000"> SumAccountExample </span>
				<span id="Codehighlighter1_236_1451_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_236_1451_Open_Text">
						<span style="COLOR: #000000">{<br /></span>
						<span style="COLOR: #008080">12</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								<br />
						</span>
						<span style="COLOR: #008080">13</span>
						<span style="COLOR: #000000">
								<img id="Codehighlighter1_279_1448_Open_Image" onclick="this.style.display='none'; Codehighlighter1_279_1448_Open_Text.style.display='none'; Codehighlighter1_279_1448_Closed_Image.style.display='inline'; Codehighlighter1_279_1448_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
								<img id="Codehighlighter1_279_1448_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_279_1448_Closed_Text.style.display='none'; Codehighlighter1_279_1448_Open_Image.style.display='inline'; Codehighlighter1_279_1448_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">public</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #0000ff">static</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #0000ff">void</span>
						<span style="COLOR: #000000"> main(String[] args) </span>
						<span id="Codehighlighter1_279_1448_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_279_1448_Open_Text">
								<span style="COLOR: #000000">{<br /></span>
								<span style="COLOR: #008080">14</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #008000">//</span>
								<span style="COLOR: #008000"> Init callable object and future task</span>
								<span style="COLOR: #008000">
										<br />
								</span>
								<span style="COLOR: #008080">15</span>
								<span style="COLOR: #008000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000">        Callable pAccount </span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">new</span>
								<span style="COLOR: #000000"> PrivateAccount();<br /></span>
								<span style="COLOR: #008080">16</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        FutureTask futureTask </span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">new</span>
								<span style="COLOR: #000000"> FutureTask(pAccount);<br /></span>
								<span style="COLOR: #008080">17</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        <br /></span>
								<span style="COLOR: #008080">18</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #008000">//</span>
								<span style="COLOR: #008000"> Create a new thread to do so</span>
								<span style="COLOR: #008000">
										<br />
								</span>
								<span style="COLOR: #008080">19</span>
								<span style="COLOR: #008000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000">        Thread pAccountThread </span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">new</span>
								<span style="COLOR: #000000"> Thread(futureTask);<br /></span>
								<span style="COLOR: #008080">20</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        pAccountThread.start();<br /></span>
								<span style="COLOR: #008080">21</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        <br /></span>
								<span style="COLOR: #008080">22</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #008000">//</span>
								<span style="COLOR: #008000"> Do something else in the main thread</span>
								<span style="COLOR: #008000">
										<br />
								</span>
								<span style="COLOR: #008080">23</span>
								<span style="COLOR: #008000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000">        System.out.println(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">Doing something else here<img src="http://www.blogjava.net/images/dot.gif" />.</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">);<br /></span>
								<span style="COLOR: #008080">24</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        <br /></span>
								<span style="COLOR: #008080">25</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #008000">//</span>
								<span style="COLOR: #008000"> Get the total money from other accounts </span>
								<span style="COLOR: #008000">
										<br />
								</span>
								<span style="COLOR: #008080">26</span>
								<span style="COLOR: #008000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000">        </span>
								<span style="COLOR: #0000ff">int</span>
								<span style="COLOR: #000000"> totalMoney </span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">new</span>
								<span style="COLOR: #000000"> Random().nextInt(</span>
								<span style="COLOR: #000000">100000</span>
								<span style="COLOR: #000000">);<br /></span>
								<span style="COLOR: #008080">27</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        System.out.println(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">You have </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">+</span>
								<span style="COLOR: #000000"> totalMoney </span>
								<span style="COLOR: #000000">+</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> in your other Accounts.</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">);<br /></span>
								<span style="COLOR: #008080">28</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        System.out.println(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">Waiting for data from Private Account<img src="http://www.blogjava.net/images/dot.gif" /></span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">);<br /></span>
								<span style="COLOR: #008080">29</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #008000">//</span>
								<span style="COLOR: #008000"> If the Future task is not finished, we will wait for it</span>
								<span style="COLOR: #008000">
										<br />
								</span>
								<span style="COLOR: #008080">30</span>
								<span style="COLOR: #008000">
										<img id="Codehighlighter1_963_1065_Open_Image" onclick="this.style.display='none'; Codehighlighter1_963_1065_Open_Text.style.display='none'; Codehighlighter1_963_1065_Closed_Image.style.display='inline'; Codehighlighter1_963_1065_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
										<img id="Codehighlighter1_963_1065_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_963_1065_Closed_Text.style.display='none'; Codehighlighter1_963_1065_Open_Image.style.display='inline'; Codehighlighter1_963_1065_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000">        </span>
								<span style="COLOR: #0000ff">while</span>
								<span style="COLOR: #000000">(</span>
								<span style="COLOR: #000000">!</span>
								<span style="COLOR: #000000">futureTask.isDone())</span>
								<span id="Codehighlighter1_963_1065_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.blogjava.net/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_963_1065_Open_Text">
										<span style="COLOR: #000000">{<br /></span>
										<span style="COLOR: #008080">31</span>
										<span style="COLOR: #000000">
												<img id="Codehighlighter1_972_998_Open_Image" onclick="this.style.display='none'; Codehighlighter1_972_998_Open_Text.style.display='none'; Codehighlighter1_972_998_Closed_Image.style.display='inline'; Codehighlighter1_972_998_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
												<img id="Codehighlighter1_972_998_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_972_998_Closed_Text.style.display='none'; Codehighlighter1_972_998_Open_Image.style.display='inline'; Codehighlighter1_972_998_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">try</span>
										<span style="COLOR: #000000"> </span>
										<span id="Codehighlighter1_972_998_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
												<img src="http://www.blogjava.net/images/dot.gif" />
										</span>
										<span id="Codehighlighter1_972_998_Open_Text">
												<span style="COLOR: #000000">{<br /></span>
												<span style="COLOR: #008080">32</span>
												<span style="COLOR: #000000">
														<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                Thread.sleep(</span>
												<span style="COLOR: #000000">5</span>
												<span style="COLOR: #000000">);<br /></span>
												<span style="COLOR: #008080">33</span>
												<span style="COLOR: #000000">
														<img id="Codehighlighter1_1031_1061_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1031_1061_Open_Text.style.display='none'; Codehighlighter1_1031_1061_Closed_Image.style.display='inline'; Codehighlighter1_1031_1061_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
														<img id="Codehighlighter1_1031_1061_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1031_1061_Closed_Text.style.display='none'; Codehighlighter1_1031_1061_Open_Image.style.display='inline'; Codehighlighter1_1031_1061_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            }</span>
										</span>
										<span style="COLOR: #000000"> </span>
										<span style="COLOR: #0000ff">catch</span>
										<span style="COLOR: #000000"> (InterruptedException e) </span>
										<span id="Codehighlighter1_1031_1061_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
												<img src="http://www.blogjava.net/images/dot.gif" />
										</span>
										<span id="Codehighlighter1_1031_1061_Open_Text">
												<span style="COLOR: #000000">{<br /></span>
												<span style="COLOR: #008080">34</span>
												<span style="COLOR: #000000">
														<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                e.printStackTrace();<br /></span>
												<span style="COLOR: #008080">35</span>
												<span style="COLOR: #000000">
														<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span>
										</span>
										<span style="COLOR: #000000">
												<br />
										</span>
										<span style="COLOR: #008080">36</span>
										<span style="COLOR: #000000">
												<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
								</span>
								<span style="COLOR: #008080">37</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        Integer privataAccountMoney </span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">null</span>
								<span style="COLOR: #000000">;<br /></span>
								<span style="COLOR: #008080">38</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #008000">//</span>
								<span style="COLOR: #008000"> Since the future task is done, get the object back</span>
								<span style="COLOR: #008000">
										<br />
								</span>
								<span style="COLOR: #008080">39</span>
								<span style="COLOR: #008000">
										<img id="Codehighlighter1_1167_1223_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1167_1223_Open_Text.style.display='none'; Codehighlighter1_1167_1223_Closed_Image.style.display='inline'; Codehighlighter1_1167_1223_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
										<img id="Codehighlighter1_1167_1223_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1167_1223_Closed_Text.style.display='none'; Codehighlighter1_1167_1223_Open_Image.style.display='inline'; Codehighlighter1_1167_1223_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000">        </span>
								<span style="COLOR: #0000ff">try</span>
								<span style="COLOR: #000000"> </span>
								<span id="Codehighlighter1_1167_1223_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.blogjava.net/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_1167_1223_Open_Text">
										<span style="COLOR: #000000">{<br /></span>
										<span style="COLOR: #008080">40</span>
										<span style="COLOR: #000000">
												<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            privataAccountMoney </span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> (Integer)futureTask.get();<br /></span>
										<span style="COLOR: #008080">41</span>
										<span style="COLOR: #000000">
												<img id="Codehighlighter1_1256_1284_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1256_1284_Open_Text.style.display='none'; Codehighlighter1_1256_1284_Closed_Image.style.display='inline'; Codehighlighter1_1256_1284_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
												<img id="Codehighlighter1_1256_1284_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1256_1284_Closed_Text.style.display='none'; Codehighlighter1_1256_1284_Open_Image.style.display='inline'; Codehighlighter1_1256_1284_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">catch</span>
								<span style="COLOR: #000000"> (InterruptedException e) </span>
								<span id="Codehighlighter1_1256_1284_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.blogjava.net/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_1256_1284_Open_Text">
										<span style="COLOR: #000000">{<br /></span>
										<span style="COLOR: #008080">42</span>
										<span style="COLOR: #000000">
												<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            e.printStackTrace();<br /></span>
										<span style="COLOR: #008080">43</span>
										<span style="COLOR: #000000">
												<img id="Codehighlighter1_1315_1343_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1315_1343_Open_Text.style.display='none'; Codehighlighter1_1315_1343_Closed_Image.style.display='inline'; Codehighlighter1_1315_1343_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
												<img id="Codehighlighter1_1315_1343_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1315_1343_Closed_Text.style.display='none'; Codehighlighter1_1315_1343_Open_Image.style.display='inline'; Codehighlighter1_1315_1343_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">catch</span>
								<span style="COLOR: #000000"> (ExecutionException e) </span>
								<span id="Codehighlighter1_1315_1343_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.blogjava.net/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_1315_1343_Open_Text">
										<span style="COLOR: #000000">{<br /></span>
										<span style="COLOR: #008080">44</span>
										<span style="COLOR: #000000">
												<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            e.printStackTrace();<br /></span>
										<span style="COLOR: #008080">45</span>
										<span style="COLOR: #000000">
												<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
								</span>
								<span style="COLOR: #008080">46</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        System.out.println(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">The total moeny you have is </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">+</span>
								<span style="COLOR: #000000"> (totalMoney </span>
								<span style="COLOR: #000000">+</span>
								<span style="COLOR: #000000"> privataAccountMoney.intValue()));<br /></span>
								<span style="COLOR: #008080">47</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
						</span>
						<span style="COLOR: #008080">48</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								<br />
						</span>
						<span style="COLOR: #008080">49</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">50</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">51</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">52</span>
				<span style="COLOR: #000000">
						<img id="Codehighlighter1_1495_1809_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1495_1809_Open_Text.style.display='none'; Codehighlighter1_1495_1809_Closed_Image.style.display='inline'; Codehighlighter1_1495_1809_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_1495_1809_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1495_1809_Closed_Text.style.display='none'; Codehighlighter1_1495_1809_Open_Image.style.display='inline'; Codehighlighter1_1495_1809_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">class</span>
				<span style="COLOR: #000000"> PrivateAccount </span>
				<span style="COLOR: #0000ff">implements</span>
				<span style="COLOR: #000000"> Callable</span>
				<span id="Codehighlighter1_1495_1809_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_1495_1809_Open_Text">
						<span style="COLOR: #000000">{<br /></span>
						<span style="COLOR: #008080">53</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								<br />
						</span>
						<span style="COLOR: #008080">54</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    Integer totalMoney;<br /></span>
						<span style="COLOR: #008080">55</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    <br /></span>
						<span style="COLOR: #008080">56</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    @Override<br /></span>
						<span style="COLOR: #008080">57</span>
						<span style="COLOR: #000000">
								<img id="Codehighlighter1_1572_1805_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1572_1805_Open_Text.style.display='none'; Codehighlighter1_1572_1805_Closed_Image.style.display='inline'; Codehighlighter1_1572_1805_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
								<img id="Codehighlighter1_1572_1805_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1572_1805_Closed_Text.style.display='none'; Codehighlighter1_1572_1805_Open_Image.style.display='inline'; Codehighlighter1_1572_1805_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">public</span>
						<span style="COLOR: #000000"> Integer call() </span>
						<span style="COLOR: #0000ff">throws</span>
						<span style="COLOR: #000000"> Exception </span>
						<span id="Codehighlighter1_1572_1805_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_1572_1805_Open_Text">
								<span style="COLOR: #000000">{<br /></span>
								<span style="COLOR: #008080">58</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #008000">//</span>
								<span style="COLOR: #008000"> Simulates a time conusimg task, sleep for 10s</span>
								<span style="COLOR: #008000">
										<br />
								</span>
								<span style="COLOR: #008080">59</span>
								<span style="COLOR: #008000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000">        Thread.sleep(</span>
								<span style="COLOR: #000000">10000</span>
								<span style="COLOR: #000000">);<br /></span>
								<span style="COLOR: #008080">60</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        totalMoney </span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">new</span>
								<span style="COLOR: #000000"> Integer(</span>
								<span style="COLOR: #0000ff">new</span>
								<span style="COLOR: #000000"> Random().nextInt(</span>
								<span style="COLOR: #000000">10000</span>
								<span style="COLOR: #000000">));<br /></span>
								<span style="COLOR: #008080">61</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        System.out.println(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">You have </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">+</span>
								<span style="COLOR: #000000"> totalMoney </span>
								<span style="COLOR: #000000">+</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> in your private Account.</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">);<br /></span>
								<span style="COLOR: #008080">62</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">return</span>
								<span style="COLOR: #000000"> totalMoney;<br /></span>
								<span style="COLOR: #008080">63</span>
								<span style="COLOR: #000000">
										<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
						</span>
						<span style="COLOR: #008080">64</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    <br /></span>
						<span style="COLOR: #008080">65</span>
						<span style="COLOR: #000000">
								<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
		</div>
		<br />主线程获得了返回后即完成了总额的计算。<img src ="http://www.blogjava.net/chenpengyi/aggbug/157464.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2007-11-01 13:11 <a href="http://www.blogjava.net/chenpengyi/archive/2007/11/01/157464.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java Concurrency in Practice Java并发（线程）最佳书籍 【下载】</title><link>http://www.blogjava.net/chenpengyi/archive/2007/10/18/153977.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 18 Oct 2007 10:46:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2007/10/18/153977.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/153977.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2007/10/18/153977.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/153977.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/153977.html</trackback:ping><description><![CDATA[<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align="left">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">好久没有上来更新过了，最近在学习线程池实现，参考了</span>
				<span lang="EN-US">Tomcat</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</span>
				<span lang="EN-US">Jetty</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的线程池的实现后，还是比较佩服他们的实现的，佩服瞬间突然回忆起来以前看过的书里面提到过</span>
				<span lang="EN-US">JDK1.5</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">带了</span>
				<span lang="EN-US">doug lea</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</span>
				<span lang="EN-US">concurrency</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">包，</span>
				<span lang="EN-US">doug lea</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">算是对</span>
				<span lang="EN-US">Java</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">世界影响最大的人物之一了，其对</span>
				<span lang="EN-US">Java</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的贡献绝对超过</span>
				<span lang="EN-US">James Gosling</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等</span>
				<span lang="EN-US">Java</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">世界的“言论”巨头（我认为而已）。这位可爱的老教授为</span>
				<span lang="EN-US">JDK</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的</span>
				<span lang="EN-US">Collection</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和如今的</span>
				<span lang="EN-US">Concurrency</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">包作出的贡献是不可估量的，同时他还是</span>
				<span lang="EN-US">dlmalloc</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的作者，相信</span>
				<span lang="EN-US">C</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">背景的程序员对这个</span>
				<span lang="EN-US">malloc</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的新实现会比较熟悉，还出过关于</span>
				<span lang="EN-US">Java</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">并发的书，不过这里先不提啦，因为我看的不是这个，而是《</span>
				<span lang="EN-US">Java Concurrency in Practice</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">》，这本书是多人合著的，作者中不乏牛人，有</span>
				<span lang="EN-US">Joshua Bloch</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（</span>
				<span lang="EN-US">Effective Java</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">作者）和</span>
				<span lang="EN-US">Doug Lea</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（不认识的，</span>
				<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; mso-symbol-font-family: Wingdings">
						<span style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">J</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）等等（中文中惯用的表示牛人多的说法）。</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">既然得到了好书就要分享一下，这里不多做介绍了，赶紧把电子版传上来跟大家分享一下。<br /></span>
		</p>
		<span lang="EN-US">
				<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
				<o:p>
						<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
								<br />
						</p>
						<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align="left">
								<img src="http://java.sun.com/developer/technicalArticles/Interviews/images/jcip-thumbnail.jpg" />
						</p>
						<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
								<br />
								<a title="Java concurrency in Practice download" href="/Files/chenpengyi/Java-Concurrency-in-Practice.rar">下载链接在此</a>
						</p>
				</o:p>
		</span><img src ="http://www.blogjava.net/chenpengyi/aggbug/153977.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2007-10-18 18:46 <a href="http://www.blogjava.net/chenpengyi/archive/2007/10/18/153977.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL新强大特性——事件，MySQL DBA必看！</title><link>http://www.blogjava.net/chenpengyi/archive/2006/10/29/77931.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sun, 29 Oct 2006 14:05:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/10/29/77931.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/77931.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/10/29/77931.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/77931.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/77931.html</trackback:ping><description><![CDATA[<p>
				<font color="#000000" size="2">MySQL的事件特性是一个相当有用的特性，特别对于MySQL单机和集群的数据库管理员DBA，相信是DBA必定要掌握的知识。也肯定当MySQL的DBA学习完了这个特性后，将这个特性用好，可以给自己省下60％的工作量。<br />正文在MySQL栏目中，已经做成PDF供大家下载了，地址是：<br /><a href="/chenpengyi/articles/77933.html">http://www.blogjava.net/chenpengyi/articles/77933.html</a><br /><br />下面是一些内容节选：<br /><br />设定事件并运行</font>
		</p>
		<p>
				<font color="#000000" size="2">我们从MySQL downloads page上下载了MySQL 5.1 Beta版，安装到XP上，启动MySQL服务，用root用户打开MySQL客户端：</font>
		</p>
		<p>
				<font color="#000000" size="2">mysql&gt; use test;</font>
		</p>
		<p>
				<font color="#000000" size="2">Database changed</font>
		</p>
		<p>
				<font color="#000000" size="2">mysql&gt; create table test.t (s1 timestamp);</font>
		</p>
		<p>
				<font color="#000000" size="2">Query OK, 0 rows affected (0.11 sec)</font>
		</p>
		<p>
				<font color="#000000" size="2">
				</font> </p>
		<p>
				<font color="#000000" size="2">mysql&gt; create event e on schedule every 1 second do</font>
		</p>
		<p>
				<font color="#000000" size="2">       insert into test.t values (current_timestamp);</font>
		</p>
		<p>
				<font color="#000000" size="2">Query OK, 1 row affected (0.00 sec)</font>
		</p>
		<p>
				<font color="#000000" size="2">
				</font> </p>
		<p>
				<font color="#000000" size="2">mysql&gt; set global event_scheduler = 1;</font>
		</p>
		<p>
				<font color="#000000" size="2">Query OK, 0 rows affected (0.00 sec)</font>
		</p>
		<p>
				<font color="#000000" size="2">
				</font> </p>
		<p>
				<font color="#000000" size="2">/* 3-second delay */</font>
		</p>
		<p>
				<font color="#000000" size="2"> </font>
				<font color="#000000" size="2">mysql&gt; select * from test.t;</font>
		</p>
		<p>
				<font color="#000000" size="2">+---------------------+</font>
		</p>
		<p>
				<font color="#000000" size="2">| s1                  |</font>
		</p>
		<p>
				<font color="#000000" size="2">+---------------------+</font>
		</p>
		<p>
				<font color="#000000" size="2">| 2006-04-05 15:44:26 |</font>
		</p>
		<p>
				<font color="#000000" size="2">| 2006-04-05 15:44:27 |</font>
		</p>
		<p>
				<font color="#000000" size="2">| 2006-04-05 15:44:28 |</font>
		</p>
		<p>
				<font color="#000000" size="2">+---------------------+</font>
		</p>
		<p>
				<font color="#000000" size="2">上面是MySQL “事件”特性的“Hello World”例子，给大家演示的是每隔一秒钟向行内插入一条时间的记录。<br /></font>
		</p><img src ="http://www.blogjava.net/chenpengyi/aggbug/77931.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-10-29 22:05 <a href="http://www.blogjava.net/chenpengyi/archive/2006/10/29/77931.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL 5.1 提供XML内置支持(XPath)</title><link>http://www.blogjava.net/chenpengyi/archive/2006/07/11/57578.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Mon, 10 Jul 2006 16:12:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/07/11/57578.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/57578.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/07/11/57578.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/57578.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/57578.html</trackback:ping><description><![CDATA[<font size="2">前些天说到了MySQL5提供了内置的XML文件解析和修改函数，今天找了点MySQL网站上的资料和例子，翻译了一下，希望能给使用数据库存储XML和XSLT的同志一些帮助。<br />MySQL 5.1.5版本中添加了对XML文档进行查询和修改的函数，分别是ExtractValue()和UpdateXML()，下面是这两个函数的使用示例：<br />还是一样我们首先建立一个示例数据库，然后将范例中使用的XML文档输入到数据库中：<br />CREATE TABLE x (doc VARCHAR(150));<br />INSERT INTO x VALUES<br />('<br />&lt;book&gt;<br />&lt;title&gt;A guide to the SQL standard&lt;/title&gt;<br />&lt;author&gt;<br />&lt;initial&gt;CJ&lt;/initial&gt;<br />&lt;surname&gt;Date&lt;/surname&gt;<br />&lt;/author&gt;<br />&lt;/book&gt;<br />');<br />INSERT INTO x VALUES<br />('<br />&lt;book&gt;<br />&lt;title&gt;SQL:1999&lt;/title&gt;<br />&lt;author&gt;<br />&lt;initial&gt;J&lt;/initial&gt;<br />&lt;surname&gt;Melton&lt;/surname&gt;<br />&lt;/author&gt;<br />&lt;/book&gt;<br />');<br />大家可以看到，doc列的内容中包含了自己的层次结构，以XML格式体现包含书名和作者的书本，其中作者还包含名字简写大写以及姓。这是流行的排版和储存格式，字母"&lt;book&gt;" 和&lt;/book&gt;"是标记，使用户更容易理解内部的层次结构。<br />下面先看看ExtractValue()的用法吧<br />语法：<br />EXTRACTVALUE (XML_document, XPath_string); <br />第一个参数：XML_document是String格式，为XML文档对象的名称，文中为Doc<br />第二个参数：XPath_string (Xpath格式的字符串) ，如果不了解Xpath语法，可以在网上查找教程。<br />作用：从目标XML中返回包含所查询值的字符串<br />示例#E1：<br />mysql&gt; SELECT EXTRACTVALUE(doc,'/book/author/initial') FROM x;<br />+------------------------------------------+<br />| EXTRACTVALUE(doc,'/book/author/initial') |<br />+------------------------------------------+<br />| CJ |<br />| J |<br />+------------------------------------------+<br />2 rows in set (0.01 sec)<br />可以看到，EXTRACTVALUE()函数将/book/author/initial节点中的值取出来，并通过Select返回。因此需要简单的查找XML文档中的值，只要在XPath_string参数中指定好层次和节点就行了。<br />示例#E2<br />mysql&gt; SELECT EXTRACTVALUE(doc,'/*/*/initial') FROM x;<br />+----------------------------------+<br />| EXTRACTVALUE(doc,'/*/*/initial') |<br />+----------------------------------+<br />| CJ |<br />| J |<br />+----------------------------------+<br />2 rows in set (0.01 sec)<br />如果查询前并不知道层次关系，你也可以使用通配符进行层次的匹配，不过当XML文档比较大的时候查找速度会很慢滴。<br />示例#E3<br />mysql&gt; SELECT extractValue(doc,'/book/child::*') FROM x;<br />+---------------------------------------------+<br />| extractValue(doc,'/book/child::*') |<br />+---------------------------------------------+<br />| A guide to the SQL standard |<br />| SQL:1999 |<br />+---------------------------------------------+<br />2 rows in set (0.00 sec)<br />使用/book/child::语句我们可以找到Book节点下的首个节点，文中是title。除了child以外，我们还有其他的参数：<br />child ... 指定节点的下一子节点）<br />descendant ... 节点下包含的所有层次中的数据<br />parent ... 指定节点的上一节点<br />ancestor ... 节点以上所有层次的数据<br />following-sibling ... 同一层次的下一个节点<br />preceding-sibling ... 同一层次的上一个节点<br />self ... 自身<br />示例#E4<br />mysql&gt; select<br />extractValue(doc,'/book/author/surname[self:text()="Date"]') from x;<br />+--------------------------------------------------------------+<br />| extractValue(doc,'/book/author/surname[self:text()="Date"]') |<br />+--------------------------------------------------------------+<br />| Date |<br />| |<br />+--------------------------------------------------------------+<br />2 rows in set (0.00 sec)<br />这里是一个使用条件表达式进行数据查找的例子，具体就不解释了，都是符合Xpath语法的，大家可以参考一下Xpath表达式的用法。<br />虽然上面的extractValue()函数都使用在SELECT列表中，其实该函数是可以使用在任何一个允许使用表达式的语句中的。<br />这里提示一点，使用这个函数可以轻松将XML文档列与全文检索结合起来。 <br />来到UpdateXML()函数了<br />语法<br />UPDATEXML (XML_document, XPath_string, new_value); <br />第一个参数：XML_document是String格式，为XML文档对象的名称，文中为Doc<br />第二个参数：XPath_string (Xpath格式的字符串) ，如果不了解Xpath语法，可以在网上查找教程。<br />第三个参数：new_value，String格式，替换查找到的符合条件的数据 <br />作用：改变文档中符合条件的节点的值 <br />示例#U1<br />mysql&gt; select UpdateXML(doc,'/book/author/initial','!!') from x;<br />+----------------------------------------------------------+<br />| UpdateXML(doc,'/book/author/initial','!!') |<br />+----------------------------------------------------------+<br />|<br />&lt;book&gt;<br />&lt;title&gt;A guide to the SQL standard&lt;/title&gt;<br />&lt;author&gt;<br />!!<br />&lt;surname&gt;Date&lt;/surname&gt;<br />&lt;/author&gt;<br />&lt;/book&gt; |<br />|<br />&lt;book&gt;<br />&lt;title&gt;SQL:1999&lt;/title&gt;<br />&lt;author&gt;<br />!!<br />&lt;surname&gt;Melton&lt;/surname&gt;<br />&lt;/author&gt;<br />&lt;/book&gt; |<br />+----------------------------------------------------------+<br />2 rows in set (0.00 sec)<br />UpdateXML函数的前两个参数用法以及写法与ExtractValue是一样的，因为这里需要查找到符合条件的数据节点。第三个参数就是为了替换节点字符串的。文中我们就使用!!字符串替换了book/author/initial节点的值。返回值是整个改变后的XML文档。这里记住，由于我们使用的是Select语句，因此并没有对真正的数据进行修改，而是在内存中将取出的数据进行修改然后返回给用户。如果需要彻底的修改文档内容，可以使用下面语句：<br />UPDATE x SET doc = UpdateXML(doc,/book/author/initial','!!');<br />细心的人也许发现这里有一个错误，也许是Bug，因为我们并不想修改结构化的文档，而仅仅需要修改内容，但UpdateXML函数将&lt;initial&gt;CJ&gt;&lt;/initial&gt;整个文本改成了!!，这样就不是我们所想要的了，因为它改变了整个文档结构。因此如果你需要的仅仅是修改这个结构化文档的内容部分，而不是整个文本，可以使用：<br />UpdateXML(doc,'/book/author/initial','&lt;initial&gt;!!&lt;/initial&gt;') from x;<br />示例#U2<br />mysql&gt; select<br />extractvalue(<br />UpdateXML(doc,'/book/author/initial','&lt;initial&gt;!!&lt;/initial&gt;'),'/book/author/<br />initial') from x;<br />+---------------------------------------------------------------------------<br />--------------------------+<br />|<br />extractvalue(<br />UpdateXML(doc,'/book/author/initial','&lt;initial&gt;!!&lt;/initial&gt;'),'/book/author/<br />initial') |<br />+---------------------------------------------------------------------------<br />--------------------------+<br />| !!<br />|<br />| !!<br />|<br />+---------------------------------------------------------------------------<br />--------------------------+<br />2 rows in set (0.01 sec)<br />最后一个例子，ExtractValue()函数和UpdateXML()函数的嵌套使用，结果是给我们展示将initial节点的值改成!!后选择查询initial节点的内容，结果大家也能看到了。 <br />上面只是这两个函数的最基本用法，如果大家还需要更多的资料，或有一些自己的心得，欢迎一起讨论。<br /></font><img src ="http://www.blogjava.net/chenpengyi/aggbug/57578.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-07-11 00:12 <a href="http://www.blogjava.net/chenpengyi/archive/2006/07/11/57578.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用Skype免费拨打美国、加拿大国际长途</title><link>http://www.blogjava.net/chenpengyi/archive/2006/07/09/57329.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sun, 09 Jul 2006 04:11:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/07/09/57329.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/57329.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/07/09/57329.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/57329.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/57329.html</trackback:ping><description><![CDATA[<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt">   </span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可能有心的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用户也留意到了，前段时间</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">给大家发了一封邮件，说什么可以免费拨打美国加拿大的固定电话和手机，但尝试了后都发现不成功，都提示需要</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的点数。那时候甚至看到有人说</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">公司无耻，欺骗客户。但其实</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">没有骗人，因为这项服务只提供给加拿大和美国的用户，让这些美加本地的人打本地的电话免费而已。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<br />   </span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">由此有一部分人展开了讨论，</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是通过什么方式去限制其他地区的人呢？可能有人认为是通过账户信息上的国家名称，提出这个想法呢，就真的有点看不起</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">公司人员的智商了，当然这是我开玩笑了。有网络知识的人也知道，</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">应该是通过</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">IP</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">地址的归属地去限制用户拨打国际长途的。因此就有了一系列的尝试，代理服务器等等的使用</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">免费拨打国际长途的说话就来了。方法是很多的，所以我这里就举出我所知道的几个方法，如何使用</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">拨打国际长途（仅限美国加拿大），这个虽然来说不属于</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">BlogJava</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的讨论内容，但对我们这些手头不阔绰的程序员来说是相当有用的，甚至可以考虑通过这个创业哦，因为如果你通过下面的方法架设好后，再开一个话吧，你需要的仅仅是一些跟电脑连通的话机和上网费用及电脑，然后就是很低的运营成本了。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<strong>
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</strong>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<strong>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">方法</span>
						<span lang="EN-US">1</span>
				</strong>
				<strong>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">：</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</strong>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">网络，让自己在美国或加拿大的朋友为自己建立一个</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的网络，然后拨号过去，再启动一个</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，就可以实现。够简单吧，呵呵，我说起来当然简单了，但做起来就不一定了。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这里最难的就是如何架设</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">网络了，首先讲怎么建立</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务器，其实这个在</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">XP</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中就自带了，大家可以根据我的教程试试看。不过这里的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务器一定要是美国加拿大本地的，你可以跟那里的朋友说好，让他</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">24</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">小时开机就可以了。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">建立</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">网络服务器的连接教程如下：</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<a href="http://windows.chinaitlab.com/skill/7620.html">http://windows.chinaitlab.com/skill/7620.html</a>
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">微软的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">教学如下：</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<a href="http://www.microsoft.com/china/technet/prodtechnol/windowsnetserver/evaluate/cpp/reskit/netsvc/rkdnsvpn.asp">http://www.microsoft.com/china/technet/prodtechnol/windowsnetserver/evaluate/cpp/reskit/netsvc/rkdnsvpn.asp</a>
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">而如何让客户端拨号到</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">网络的方法也很简单，步骤如下：</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">开始</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">连接到</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">显示所有连接或者是控制面板</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">网络连接</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">新建连接</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">选择连接到我的工作场所的网络</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">虚拟专用网络连接</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">输入一个你想要工作场所的名字（随意输入）</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">--&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如果你是拨号上网的用户，最好选择自动的初始连接为你的拨号连接，其他的就无所谓的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt"> --&gt;</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">然后输入你的主机的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">IP</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">地址就</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">OK</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">了。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">最后就是双击这个新的连接，输入你设置的用户名和密码就好了。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这里我补充一点，很多人想过使用代理服务器来实现，但必须保证你的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的通向外网的连接都通过这个服务器实现。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<strong>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">方法</span>
						<span lang="EN-US">2</span>
				</strong>
				<strong>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">：</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</strong>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">更简单，不需要设置什么</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">专用的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">VPN</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，那就是使用</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的三方通话，首先让美加本地的一台电脑拨打你需要的那个号码，然后在邀请你的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">加入三方通话，这样你就可以实现拨打美加的电话了。其实这样也是很方便的，让对方的电脑给你开一个远程用户，你需要的时候只要登陆他的电脑，然后用</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">拨打本地号码，接通后邀请国内的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">Skype</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">就可以了。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<strong>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">方法</span>
						<span lang="EN-US">3</span>
				</strong>
				<strong>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">：</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</strong>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">还有很多灵活的方法，大家也可以提供讨论一下，最后的方法就是找我咯，</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt">^_^</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，写信或者留言给我都行。</span>
		</p><img src ="http://www.blogjava.net/chenpengyi/aggbug/57329.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-07-09 12:11 <a href="http://www.blogjava.net/chenpengyi/archive/2006/07/09/57329.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>精彩（看疯了）小说——《输赢》转载</title><link>http://www.blogjava.net/chenpengyi/archive/2006/05/19/46939.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 18 May 2006 16:42:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/05/19/46939.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/46939.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/05/19/46939.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/46939.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/46939.html</trackback:ping><description><![CDATA[<p>
				<font size="2">开火老兄的小说《输赢》确实不错，转过来给Blogjava的兄弟看看。<br /><br />这个小说已经在网上被看疯了，我个人觉得可以看看，以后不从事编程工作了就有用了。<br /><br />我把前142回都收集了，为了方便大家观看，只分了四页，不用感谢我的，哈哈。<br /><br />地址是：</font>
				<a href="/chenpengyi/category/11305.html">
						<font size="2">http://www.blogjava.net/chenpengyi/category/11305.html</font>
				</a>
				<br />
				<br />
				<font size="2">如果开火兄弟对转载有意见，可以给我写信，我立刻撤下。</font>
		</p><img src ="http://www.blogjava.net/chenpengyi/aggbug/46939.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-05-19 00:42 <a href="http://www.blogjava.net/chenpengyi/archive/2006/05/19/46939.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何在工作中学习英文——忙里偷闲听英语电台</title><link>http://www.blogjava.net/chenpengyi/archive/2006/05/14/46141.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sun, 14 May 2006 15:24:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/05/14/46141.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/46141.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/05/14/46141.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/46141.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/46141.html</trackback:ping><description><![CDATA[<p>
				<font size="2">
						<font size="4">
								<strong>如何在繁忙的工作中学习英文——忙里偷闲听英语电台</strong>
						</font>
						<br />
						<br />给大家介绍一个学习英语的好办法，一边做其他轻松的事情的时候戴上耳机听英语电台，这样比你听音乐好多了，而且还能让自己找到语感。所以这里给大家提供了部分这些电台的收听地址，希望能给各位blogjava的同事们带来点帮助。<br /><br />这里需要大家安装Realplayer，这些废话就不需要跟blogjava的兄弟们说了，不会就怪了。<br /><br /></font>
		</p>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">澳大利亚 ABC 在线英语广播电台<br /></font>
						</b>
				</span>
				<br />还可以的地方，推荐可以去。<br /><embed src="http://www.abc.net.au/streaming/newsradio.ram" width="400" height="40" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /><br /><br /><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">美国 NPR 在线英语广播电台<br /></font>
						</b>
				</span>
				<br />我个人比较喜欢的，因为新闻比较多，而且连接比较容易连上。<br /><embed src="http://www.npr.org/realmedia/news2a.ram?loc=right" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /><br /><br /><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">美国 Bloomberg 在线英语广播电台<br /></font>
						</b>
				</span>
				<br />美国迪，不评论了，比较综合的<br /><embed src="http://www.bloomberg.com/streams/audio/radio_live.ram" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /><br /><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">英国 BBC（1台） The best new music<br /></font>
						</b>
				</span>
				<br />最新最Hot的外文音乐<br /><embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio1/live/r1_dsat_g2.ra" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /><br /><br /><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">英国 BBC（2台） The nation's favourite<br /></font>
						</b>
				</span>
				<br />全民公爱，呵呵，不是中国的，是英国的<br /><embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio2/live/r2_dsat_g2.ra?title=%22BBC%20Radio%202%22&amp;amp;author=%22http://www.bbc.co.uk%22&amp;amp;copyright=%22(C)%20British%20Broadcasting%20Corporation%20" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /><br /><br /><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">英国 BBC（3台） Live music and arts<br /></font>
						</b>
				</span>
				<br />现场音乐会等<br /><embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio3/live/r3_dsat_g2.ra" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">
										<br />
										<br />英国 BBC (6 台)     Playing what we like</font>
						</b>
				</span>
				<br />
				<br />音乐和新闻的<br /><embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/6music/live/6music_dsat_g2.ra" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /><br /><br /><div align="left"><span style="FONT-SIZE: 12pt"><font size="2"><strong>美国 CNN 在线英语广播电台<br /><br /></strong>CNN，很出名的哦，不过这里只是topstory报告</font></span></div><embed src="rtsp://demand2.stream.aol.com/cnn/audio/topstories.rm" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"><br /><br /><br /><br /><br /><br /></embed></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">英国 BBC（7台） Comedy and Drama<br /></font>
						</b>
				</span>
				<br />歌剧话剧台，听故事的地方<br /><embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/bbc7/live/bbc7_dsat_g2.ra" width="400" height="60" type="audio/x-pn-realaudio-plugin" autostart="false" controls="ControlPanel,StatusBar" tppabs="defaultsound/1.rm"><font size="3"> </font><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">
										<br />
										<br />
										<br />
										<br />英国 BBC(Asian Network) British Asian Radio<br /></font>
						</b>
				</span>
				<br />BBC的亚洲电台，不过感觉India口音居多<br /><br /><embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/asiannetwork/live/asian_dsat_g2.ra" width="400" height="60" type="audio/x-pn-realaudio-plugin" autostart="false" controls="ControlPanel,StatusBar" tppabs="defaultsound/1.rm"><font size="3"> </font><br /><br /><br /></embed></div>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<b>
								<font size="2">英国BBC(wales威尔士)在线英语广播电台<br /></font>
						</b>
				</span>
				<font size="2">
						<br />这个速度一般，不过有晚上不错的音乐。：）<br /></font>
		</div>
		<font size="2">
				<embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/wales/live/wales_dsat_g2.ra" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"> <br /><br /><br /></embed>
				<br />
		</font>
		<div align="left">
				<span style="FONT-SIZE: 12pt">
						<font size="2">
								<strong>英国 BBC New black music <br /><br /></strong>黑人电台？呵呵，估计是，听音乐风格就是<br /><strong><embed src="rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/1xtra/live/1xtra_dsat_g2.ra" width="400" height="60" type="audio/x-pn-realaudio-plugin" autostart="false" controls="ControlPanel,StatusBar" tppabs="defaultsound/1.rm"><br /><br /><br /></embed></strong></font>
						<font size="3">
								<br />
								<br />
								<br />
								<div align="left">
										<font size="2">
												<span style="FONT-SIZE: 12pt">
														<b>
																<font size="2">新西兰 RNZI 在线英语广播电台</font>
																<br />
														</b>
												</span>
												<br />不太熟悉的电台，有些新闻和音乐<br /><embed src="http://www.wrn.org/audio/rnz_eng.ram" width="400" height="60" type="audio/x-pn-realaudio-plugin" tppabs="defaultsound/1.rm" controls="ControlPanel,StatusBar" autostart="false"></embed></font>
								</div>
						</font>
						<font size="3"> <br /><br /></font>
						<font size="2">希望能给大家带来一些帮助咯，如果各位有什么更好的方法一起讨论。</font>
				</span>
		</div><img src ="http://www.blogjava.net/chenpengyi/aggbug/46141.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-05-14 23:24 <a href="http://www.blogjava.net/chenpengyi/archive/2006/05/14/46141.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>受益终生的十大经典管理学定律[转]</title><link>http://www.blogjava.net/chenpengyi/archive/2006/05/12/45752.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 11 May 2006 16:27:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/05/12/45752.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/45752.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/05/12/45752.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/45752.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/45752.html</trackback:ping><description><![CDATA[<font face="宋体" size="2">     1、彼得原理  </font>
		<span lang="EN-US" style="LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt">
				<br />
				<br />
		</span>
		<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">
				<font size="2">　　每个组织都是由各种不同的职位、等级或阶层的排列所组成，每个人都隶属于其中的某个等级。彼得原理是美国学者劳<span lang="EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span></font>
		</span>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align="left">
				<span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">斯<span lang="EN-US">·彼得在对组织中人员晋升的相关现象研究后，得出一个结论：在各种组织中,雇员总是趋向于晋升到其不称职的地位。彼得原理有时也被称为向上爬的原理。 这种现象在现实生活中无处不在：一名称职的教授被提升为大学校长后，却无法胜任；一个优秀的运动员被提升为主管体育的官员，而无所作为。对一个组织而言，一旦相当部分人员被推到其不称职的级别，就会造成组织的人浮于事，效率低下，导致平庸者出人头地，发展停滞。因此，这就要求改变单纯的根据贡献决定晋升的企业员工晋升机制，不能因某人在某个岗位上干得很出色，就推断此人一定能够胜任更高一级的职务。将一名职工晋升到一个无法很好发挥才能的岗位，不仅不是对本人的奖励，反而使其无法很好发挥才能，也给企业带来损失。 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">2、酒与污水定律 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　酒与污水定律是指把一匙酒倒进一桶污水，得到的是一桶污水；如果把一匙污水倒进一桶酒，得到的还是一桶污水。在任何组织里，几乎都存在几个难弄的人物，他们存在的目的似乎就是为了把事情搞糟。最糟糕的是，他们像果箱里的烂苹果，如果不及时处理，它会迅速传染，把果箱里其他苹果也弄烂。<span lang="EN-US"> 烂苹果的可怕之处，在于它那惊人的破坏力。一个正直能干的人进入一个混乱的部门可能会被吞没，而一个无德无才者能很快将一个高效的部门变成一盘散沙。组织系统往往是脆弱的，是建立在相互理解、妥协和容忍的基础上的，很容易被侵害、被毒化。破坏者能力非凡的另一个重要原因在于，破坏总比建设容易。一个能工巧匠花费时日精心制作的陶瓷器，一头驴子一秒钟就能毁坏掉。如果一个组织里有这样的一头驴子，即使拥有再多的能工巧匠，也不会有多少像样的工作成果。如果你的组织里有这样的一头驴子，你应该马上把它清除掉，如果你无力这样做，就应该把它拴起来。 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">3、木桶定律 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　水桶定律是讲一只水桶能装多少水，这完全取决于它最短的那块木板。这就是说任何一个组织，可能面临的一个共同问题，即构成组织的各个部分往往是优劣不齐的，而劣势部分往往决定整个组织的水平。水桶定律与酒与污水定律不同，后者讨论的是组织中的破坏力量，最短的木板却是组织中有用的一个部分，只不过比其他部分差一些，你不能把它们当成烂苹果扔掉。强弱只是相对而言的，无法消除，问题在于你容忍这种弱点到什么程度，如果严重到成为阻碍工作的瓶颈，你就不得不有所动作。 </font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">4、马太效应 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　《新约<span lang="EN-US">·马太福音》中有这样一个故事：一个国王远行前，交给3个仆人每人一锭银子，吩咐道：你们去做生意，等我回来时，再来见我。国王回来时，第一个仆人说：主人，你交给我的一锭银子，我已赚了10锭。于是，国王奖励他10座城邑。第二个仆人报告：主人，你给我的一锭银子，我已赚了5锭。于是，国王奖励他5座城邑。第三仆人报告说：主人，你给我的1锭银子，我一直包在手帕里，怕丢失，一直没有拿出来。于是，国王命令将第三个仆人的1锭银子赏给第一个仆人，说：凡是少的，就连他所有的，也要夺过来。凡是多的，还要给他，叫他多多益善，这就是马太效应，反应当今社会中存在的一个普遍现象，即赢家通吃。对企业经营发展而言，马太效应告诉我们，要想在某一个领域保持优势，就必须在此领域迅速做大。当你成为某个领域的领头羊时，即便投资回报率相同，你也能更轻易地获得比弱小的同行更大的收益。而若没有实力迅速在某个领域做大，就要不停地寻找新的发展领域，才能保证获得较好的回报。 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">5、零和游戏原理 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　零和游戏是指一项游戏中，游戏者有输有赢，一方所赢正是另一方所输，游戏的总成绩永远为零，零和游戏原理之所以广受关注，主要是因为人们在社会的方方面面都能发现与零和游戏类似的局面，胜利者的光荣后面往往隐藏着失败者的辛酸和苦涩。<span lang="EN-US"> 20世纪，人类经历两次世界大战、经济高速增长，科技进步、全球一体化以及日益严重的环境污染，零和游戏观念正逐渐被双赢观念所取代。人们开始认识到利已不一定要建立在损人的基础上。通过有效合作皆大欢喜的结局是可能出现的。但从零和游戏走向双赢，要求各方面要有真诚合作的精神和勇气，在合作中不要小聪明，不要总想占别人的小便宜，要遵守游戏规则，否则双赢的局面就不可能出现，最终吃亏的还是合作者自己。 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">6、华盛顿合作规律 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　华盛顿合作规律说的是一个人敷衍了事，两个人互相推诿，三个人则永无成事之日。多少有点类似于我们三个和尚的故事。人与人的合作，不是人力的简单相加，而是要复杂和微妙得多。在这种合作中，假定每个人的能力都为<span lang="EN-US">1，那么，10个人的合作结果有时比10大得多，有时，甚至比1还要小。因为人不是静止物，而更像方向各异的能量，相互推动时，自然事半功倍，相互抵触时，则一事无成。 我们传统的管理理论中，对合作研究得并不多，最直观的反映就是，目前的大多数管理制度和行为都是致力于减少人力的无谓消耗，而非利用组织提高人的效能。换言之，不妨说管理的主要目的不是让每个人做得更好，而是避免内耗过多。 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">7、手表定理 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　手表定理是指一个人有一只表时，可以知道现在是几点钟，当他同时拥有两只表时，却无法确定。两只手表并不能告诉一个人更准确的时间，反而会让看表的人失去对准确时间的信心。手表定理在企业经营管理方面，给我们一种非常直观的启发，就是对同一个人或同一个组织的管理，不能同时采用两种不同的方法，不能同时设置两个不同的目标，甚至每一个人不能由两个人同时指挥，否则将使这个企业或这个人无所适从。手表定理所指的另一层含义在于，每个人都不能同时选择两种不同的价值观，否则，你的行为将陷于混乱。 </font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">8、不值得定律 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　不值得定律最直观的表述是：不值得做的的事情，就不值得做好。这个定律再简单不过了，重要性却时时被人们忽视遗忘。不值得定律反映人们的一种心理，一个人如果从事的是一份自认为不值得做的事情，往往会保持冷嘲热讽，敷衍了事的态度，不仅成功率低，而且即使成功，也不觉得有多大的成就感。<span lang="EN-US"> 因此，对个人来说，应在多种可供选择的奋斗目标及价值观中挑选一种，然后为之奋斗。选择你所爱的，爱你所选择的，才可能激发我们的斗志，也可以心安理得。而对一个企业或组织来说，则要很好地分析员工的性格特性，合理分配工作，如让成就欲较强的职工单独或牵头完成具有一定风险和难度的工作，并在其完成时，给予及时的肯定和赞扬；让依附欲较强的职工，更多地参加到某个团体*同工作；让权力欲较强的职工，担任一个与之能力相适应的主管。同时要加强员工对企业目标的认同感，让员工感觉到自己所做的工作是值得的，这样才能激发职工的热情。 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">9、蘑菇管理 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　蘑菇管理是许多组织对待初出茅庐者的一种管理方法，初学者被置于阴暗的角落(不受重视的部门，或打杂跑腿的工作)，浇上一头大粪(无端的批评、指责、代人受过)，任其自生自灭(得不到必要的指导和提携)。相信很多人都有过这样一段蘑菇的经历，这不一定是什么坏事，尤其是当一切刚刚开始的时候，当几天蘑菇，能够消除我们很多不切实际的幻想，让我们更加接近现实，看问题也更加实际。一个组织，一般对新进的人员都是一视同仁，从起薪到工作都不会有大的差别。无论你是多么优秀的人才，在刚开始的时候，都只能从最简单的事情做起，蘑菇的经历，对于成长中的年轻人来说，就象蚕茧，是羽化前必须经历的一步。所以，如何高效率地走过生命的这一段，从中尽可能汲取经验，成熟起来，并树立良好的值得信赖的个人形象，是每个刚入社会的年轻人必须面对的课题。 </font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">10、奥卡姆剃刀定律 </span></font>
		</span>
		<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<br />
				<br />
		</span>
		<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
				<font size="2">　　<span lang="EN-US">12世纪，英国奥卡姆的威廉主张唯名论，只承认确实存在的东西，认为那些空洞无物的普遍性概念都是无用的累赘，应当被无情地剃除。他主张如无必要，勿增实体。这就是常说的奥卡姆剃刀。这把剃刀曾使很多人感到威胁，被认为是异端邪说，威廉本人也因此受到迫害。然而，并未损害这把刀的锋利，相反，经过数百年的岁月，奥卡姆剃刀已被历史磨得越来越快，并早已超载原来狭窄的领域，而具有广泛、丰富、深刻的意义。　　奥卡姆剃刀定律在企业管理中可进一步演化为简单与复杂定律：把事情变复杂很简单，把事情变简单很复杂。这个定律要求，我们在处理事情时，要把握事情的主要实质，把握主流，解决最根本的问题，尤其要顺应自然，不要把事情人为地复杂化，这样才能把事情处理好。</span></font>
		</span><img src ="http://www.blogjava.net/chenpengyi/aggbug/45752.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-05-12 00:27 <a href="http://www.blogjava.net/chenpengyi/archive/2006/05/12/45752.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>通过分区（Partition）提升MySQL性能[原创翻译]</title><link>http://www.blogjava.net/chenpengyi/archive/2006/05/05/44631.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Fri, 05 May 2006 06:39:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/05/05/44631.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/44631.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/05/05/44631.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/44631.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/44631.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 通过分区（Partition）提升MySQL性能																																				               																												——MySQL5.1新特性翻译系列																								几年前，俺写过一篇题为“The Founda...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2006/05/05/44631.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/44631.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-05-05 14:39 <a href="http://www.blogjava.net/chenpengyi/archive/2006/05/05/44631.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Mustang JVM（1.6）与Tiger JVM（1.5）单项性能测试</title><link>http://www.blogjava.net/chenpengyi/archive/2006/05/01/44279.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Mon, 01 May 2006 08:00:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/05/01/44279.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/44279.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/05/01/44279.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/44279.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/44279.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Mustang JVM														（1.6）与Tiger JVM（1.5）性能对比																																																														这里先介绍一下用来做JVM性能评测的软件——Volano BenchMark，这是一个纯粹用Java写出来的服务器be...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2006/05/01/44279.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/44279.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-05-01 16:00 <a href="http://www.blogjava.net/chenpengyi/archive/2006/05/01/44279.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>面向服务的体系结构概述(转自IBM developerworks)</title><link>http://www.blogjava.net/chenpengyi/archive/2006/04/19/42023.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Wed, 19 Apr 2006 15:29:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/04/19/42023.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/42023.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/04/19/42023.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/42023.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/42023.html</trackback:ping><description><![CDATA[<p>
				<font face="Arial">下面是来自IBM的关于SOA的一篇好文，以前念书的时候看过，不是特别理解，今天翻出来再看看感觉真的讲的很不错。很多人对SOA的理解更多的只是在听说的程度，因此听得很多，但却实际并不是很了解到底什么是SOA，所以希望借这篇文章跟大家分享对SOA的理解和作为自己重新加深理解的学习笔记，同时能大家一起讨论一下。<br />相信大家看了这篇文章后能对SOA有个更清晰的看法。</font>
				<a href="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/#author">
						<font color="#996699">
								<br />
								<br />
								<font size="2">来自Min Luo, Mark Endrei, Philippe Comte,Pal Krogdahl, Jenny Ang, Tony Newling</font>
						</font>
				</a>
				<font size="2">, International Technical Support Organization, Raleigh Center<br /></font>
		</p>
		<p>
				<font size="2">2004 年 6 月 01 日</font>
				<br />
				<br />
				<font size="2">在这一节中，我们简要地描述了面向服务的体系结构的发展。然后，我们探究了面向组件的开发与面向服务的体系结构之间的关系，并且说明了如何将组件作为实现服务的基础设施。</font>
		</p>
		<!--START RESERVED FOR FUTURE USE INCLUDE FILES-->
		<!-- include java script once we verify teams wants to use this and it will work on dbcs and cyrillic characters -->
		<!--END RESERVED FOR FUTURE USE INCLUDE FILES-->
		<p>
				<a name="1">
						<span class="atitle">
								<font face="Arial" size="2">第一部分：新方法的商业驱动力</font>
						</span>
				</a>
		</p>
		<p>
				<font size="2">虽然 IT 经理一直面临着削减成本和最大限度地利用现有技术的难题，但是与此同时，他们还必须不断地努力，以期更好地服务客户，更快地响应企业战略重点，从而赢得更大的竞争力。</font>
		</p>
		<p>
				<font size="2">在所有这些压力之下，有两个基本的主题：异构和改变。现在，大多数企业都有各种各样的系统、应用程序以及不同时期和技术的体系结构。集成来自多个厂商跨不同平台的产品简直就像一场噩梦。但是我们也不能单单使用一家厂商的产品，因为改变应用程序套件和支持基础设施是如此之难。</font>
		</p>
		<p>
				<font size="2">在当今 IT 经理面临的问题之中，改变是第二个主题。全球化和电子商务加快了改变的步伐。全球化带来了激烈的竞争，产品周期缩短了，每个公司都想赢得超过竞争对手的优势。在竞争产品和可以从 Internet 上获得的大量产品信息的推动下，客户要求更快速地进行改变。因而，在改进产品和服务方面展开的竞争进一步加剧了。</font>
		</p>
		<p>
				<font size="2">为了满足客户提出的越来越多的新要求，技术方面的改进也在不断地加快。企业必须快速地适应这种改变，否则就难以生存，更别提在这个动荡不安竞争激烈的环境中取得成功了，而 IT 基础设施必须支持企业提高适应能力。</font>
		</p>
		<p>
				<font size="2">因此，企业组织正在从上世纪八十年代或更早的时期的相互隔离的垂直业务部门，到上世纪八十年代和九十年代关注业务流程的水平结构，向新的生态系统业务范例发展。重点是扩展供应链，支持客户和合作伙伴访问业务服务。第 19 页的图 2-1 展示了企业的这种发展。</font>
		</p>
		<p>
				<br />
				<a name="N10053">
						<b>
								<font size="2">图 2-1 企业的发展</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="图 2-1 企业的发展" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-1.jpg" />
						<br />
				</font>
		</p>
		<p>
				<font size="2">我如何使我的 IT 环境更灵活且更快地响应不断改变的业务需求呢？ 我们如何使这些异构系统和应用程序尽可能无缝地进行通信呢？我们如何达到企业目标而不使企业走向破产的深渊呢？</font>
		</p>
		<p>
				<font size="2">IT 响应者/支持者是随着企业的这种发展而并行发展的，如图 2-2 所示。现在，许多 IT 经理和专业人员都同样相信，我们真的快找到了一种满意的答案——面向服务的体系结构。</font>
		</p>
		<p>
				<font size="2">图 2-2 体系结构的发展</font>
		</p>
		<p>
				<br />
				<a name="N1006B">
						<b>
								<font size="2">图 2-2 体系结构的发展</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="Figure 2-2 The evolution of architecture" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-2.jpg" />
						<br />
				</font>
		</p>
		<p>
				<font size="2">为了减少异构性、互操作性和不断改变的要求的问题，这样的体系结构应该提供平台来构建具有下列特征的应用程序服务：</font>
		</p>
		<ul>
				<li>
						<font size="2">松散耦合 </font>
				</li>
				<li>
						<font size="2">位置透明 </font>
				</li>
				<li>
						<font size="2">协议独立 </font>
				</li>
		</ul>
		<p>
				<font size="2">基于这样的面向服务的体系结构，服务使用者甚至不必关心与之通信的特定服务，因为底层基础设施或服务“总线”将代表使用者做出适当的选择。基础设施对请求者隐藏了尽可能多的技术。特别地，来自不同实现技术（如 J2EE 或 .NET）的技术规范不应该影响 SOA 用户。如果已经存在一个服务实现，我们就还应该重新考虑用一个“更好”的服务实现来代替，新的服务实现必须具有更好的服务质量。</font>
		</p>
		<p>
				<br />
		</p>
		<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tbody>
						<tr>
								<td>
										<font size="2">
												<img height="1" alt="" src="http://www.ibm.com/i/v14/rules/blue_rule.gif" width="100%" />
												<br />
												<img height="6" alt="" src="http://www.ibm.com/i/c.gif" width="8" border="0" />
										</font>
								</td>
						</tr>
				</tbody>
		</table>
		<table class="no-print" cellspacing="0" cellpadding="0" align="right">
				<tbody>
						<tr align="right">
								<td>
										<font size="2">
												<img height="4" alt="" src="http://www.ibm.com/i/c.gif" width="100%" />
												<br />
										</font>
										<table cellspacing="0" cellpadding="0" border="0">
												<tbody>
														<tr>
																<td valign="center">
																		<font size="2"> <br /></font>
																</td>
																<td valign="top" align="right">
																		<a class="fbox" href="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/#main">
																				<b>
																				</b>
																		</a>
																</td>
														</tr>
												</tbody>
										</table>
								</td>
						</tr>
				</tbody>
		</table>
		<br />
		<br />
		<p>
				<a name="2">
						<span class="atitle">
								<font face="Arial" size="2">第二部分：作为解决方案的面向服务体系结构</font>
						</span>
				</a>
		</p>
		<p>
				<font size="2">自从“软件危机”促进软件工程的开创以来，IT 界一直在努力寻求解决上述问题的方案。在过去几年里，下面简要概述的核心技术进展使我们走到了今天。我们将简要讨论这些核心技术，而我们重点关注的将是这些技术如何帮助解决 IT 问题。</font>
		</p>
		<p>
				<a name="N10093">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">面向对象的分析和设计</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">在“Applying UML and Patterns - An Introduction to Object-Oriented Analysis and Design”中，Larman 将面向对象的分析和设计的本质描述为“从对象（物体、概念或实体）的角度考虑问题域和逻辑解决方案”。在“Object-Oriented SoftwareEngineering: A Use Case Driven Approach”中，Jacobson 等将这些对象定义为“特点在于具有许多操作和状态（记忆这些操作的影响）的物体”。</font>
		</p>
		<p>
				<font size="2">在面向对象的分析中，这样的对象是用问题域来标识和描述的，而在面向对象的设计中，它们转变成逻辑软件对象，这些对象最终将用面向对象的编程语言进行实现。</font>
		</p>
		<p>
				<font size="2">通过面向对象的分析和设计，可以封装对象（或对象组）的某些方面，以简化复杂业务场景的分析。为了降低复杂性，也可以抽象对象的某些特征，这样就可以只捕获重要或本质的方面。</font>
		</p>
		<p>
				<font size="2">基于组件的设计并不是一种新技术。它是从对象范例中自然发展而来的。在面向对象的分析和设计的早期，细粒度的对象被标榜为提供“重用”的机制，但是这样的对象的粒度级别太低了，没有适当的标准可以用来使重用广泛应用于实践之中。在应用程序开发和系统集成中，粗粒度组件越来越成为重用的目标。这些粗粒度对象通过内聚一些更细粒度的对象来提供定义良好的功能。通过这种方式，还可以将打包的解决方案套件封装成这样的“组件”。</font>
		</p>
		<p>
				<font size="2">一旦组织在更高层次上实现了基于完全独立的功能组件的完备体系结构，就可以将支持企业的应用程序划分成一组粒度越来越大的组件。可以将组件看作是打包、管理和公开服务的机制。它们可以共同使用一组技术：实现企业级用况的大粒度企业组件可以通过更新的面向对象的软件开发与遗留系统相结合来实现</font>
		</p>
		<p>
				<a name="N100A8">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">面向服务的设计</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">在“Component-Based Development for Enterprise Systems”中，Allen 涉及了服务的概念，“它是将组件描述成提供相关服务的物理黑盒封装的可执行代码单元。它的服务只能通过一致的已发布接口（它包括交互标准）进行访问。组件必须能够连接到其他组件（通过通信接口）以构成一个更大的组”。服务通常实现为粗粒度的可发现软件实体，它作为单个实例存在，并且通过松散耦合的基于消息通信模型来与应用程序和其他服务交互。第 22 页的图 2-3 展示了重要的面向服务术语：</font>
		</p>
		<ul>
				<li>
						<font size="2">服务：逻辑实体，由一个或多个已发布接口定义的契约。 </font>
				</li>
				<li>
						<font size="2">服务提供者：实现服务规范软件实体。 </font>
				</li>
				<li>
						<font size="2">服务使用者（或请求者）：调用服务提供者的软件实体。传统上，它称为“客户端”。服务使用者可以是终端用户应用程序或另一个服务。 </font>
				</li>
				<li>
						<font size="2">服务定位器：一种特殊类型的服务提供者，它作为一个注册中心，允许查找服务提供者接口和服务位置。 </font>
				</li>
				<li>
						<font size="2">服务代理：一种特殊类型的服务提供者，它可以将服务请求传送到一个或多个其他的服务提供者。 </font>
				</li>
		</ul>
		<p>
				<br />
				<a name="N100C5">
						<b>
								<font size="2">图 2-3 面向服务的术语</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="图 2-3 面向服务的术语" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-3.jpg" />
						<br />
				</font>
		</p>
		<p>
				<a name="N100D2">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">基于接口的设计</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">在组件和服务开发中，都需要进行接口设计，这样软件实体就可以实现和公开其定义的关键部分。因此，在基于组件和面向服务的系统中，“接口”的概念对于成功的设计非常关键。下面是一些与接口有关的重要定义：</font>
		</p>
		<ul>
				<li>
						<font size="2">接口：定义一组公共方法签名，它按照逻辑分组但是没有提供实现。接口定义服务的请求者和提供者之间的契约。接口的任何实现都必须提供所有的方法。 </font>
				</li>
				<li>
						<font size="2">已发布接口：一种可唯一识别和可访问的接口，客户端可以通过注册中心来发现它。 </font>
				</li>
				<li>
						<font size="2">公共接口：一种可访问的接口，可供客户端使用，但是它没有发布，因而需要关于客户端部分的静态知识。 </font>
				</li>
				<li>
						<font size="2">双接口：通常是成对开发的接口，这样，一个接口就依赖于另一个接口；例如，客户端必须实现一个接口来调用请求者，因为该客户端接口提供了某些回调机制。 </font>
				</li>
		</ul>
		<p>
				<font size="2">第 23 页的图 2-4 定义了客户关系管理 (CRM) 服务的 UML 定义，它表示为一个 UML 组件，实现接口 AccountManagement、ContactManagement 和 SystemsManagement。在这些接口中只有头两个接口是已发布接口，不过，后者是公共接口。注意，SystemsManagement 接口和 ManagementService 接口构成了双接口。CRMservice 可以实现许多这样的接口，但是它以多种方式行为的能力取决于客户端在行为的实现方面是否允许有大的灵活性。甚至有可能给特定类型的客户端提供不同或附加的服务。在一些运行时环境中，这样的功能也用于在单个组件或服务上支持相同接口的不同版本。</font>
		</p>
		<p>
				<br />
				<a name="N100EF">
						<b>
								<font size="2">图 2-4 已实现的服务</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="图 2-4 已实现的服务" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-4.jpg" />
						<br />
				</font>
		</p>
		<p>
				<a name="N100FC">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">分层应用程序体系结构</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">如前所述，面向对象的技术和语言是实现组件的极好方式。虽然组件是实现服务的最好方法，但是您必须理解的一点是，好的基于组件的应用程序未必就构成好的面向服务的应用程序。一旦理解了服务在应用程序体系结构中所起的作用，组件开发人员就很有可能会利用现有的组件。进行这种转变的关键是认识到面向服务的方法意味着附加的应用程序体系结构层。第 24 页中的图 2-5 演示了如何将技术层应用于程序体系结构以提供粒度更粗的实现（它更靠近应用程序的使用者）。为称呼系统的这一部分而创造的术语是“应用程序边界”，它反映了服务是公开系统的外部视图的极好方法的事实（通过内部重用并结合使用传统组件设计）。</font>
		</p>
		<p>
				<br />
				<a name="N10107">
						<b>
								<font size="2">图 2-5 应用程序实现层：服务、组件、对象</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="图 2-5 应用程序实现层：服务、组件、对象" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-5.jpg" />
						<br />
						<br />
				</font>
		</p>
		<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tbody>
						<tr>
								<td>
										<font size="2">
												<img height="1" alt="" src="http://www.ibm.com/i/v14/rules/blue_rule.gif" width="100%" />
												<br />
												<img height="6" alt="" src="http://www.ibm.com/i/c.gif" width="8" border="0" />
										</font>
								</td>
						</tr>
				</tbody>
		</table>
		<table class="no-print" cellspacing="0" cellpadding="0" align="right">
				<tbody>
						<tr align="right">
								<td>
										<font size="2">
												<img height="4" alt="" src="http://www.ibm.com/i/c.gif" width="100%" />
												<br />
										</font>
										<table cellspacing="0" cellpadding="0" border="0">
												<tbody>
														<tr>
																<td valign="center">
																		<font size="2"> </font>
																</td>
																<td valign="top" align="right">
																		<a class="fbox" href="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/#main">
																				<b>
																				</b>
																		</a>
																</td>
														</tr>
												</tbody>
										</table>
								</td>
						</tr>
				</tbody>
		</table>
		<br />
		<br />
		<p>
				<a name="3">
						<span class="atitle">
								<font face="Arial" size="2">第三部分：近距离审视面向服务的体系结构</font>
						</span>
				</a>
		</p>
		<p>
				<font size="2">面向服务的体系结构提供了一种方法，通过这种方法，可以构建分布式系统来将应用程序功能作为服务提供给终端用户应用程序或其他服务。其组成元素可以分成功能元素和服务质量元素。第 25 页的图 2-6 展示了体系结构堆栈以及在一个面向服务的体系结构可能观察到的元素。</font>
		</p>
		<p>
				<font size="2">
						<b>注意：</b>面向服务的体系结构堆栈可能是一个容易引起争议的问题，因为各方面的支持者已经提出了几种不同的堆栈。我们的堆栈不是作为服务堆栈提出的。我们之所以在此提出它，是因为我们想要搭建一个有用的框架，在本书的剩余章节中，我们将通过这个框架来组织对 SOA 的讨论。 </font>
		</p>
		<p>
				<br />
				<a name="N10125">
						<b>
								<font size="2">图 2-6 面向服务的体系结构的元素</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="图 2-6 面向服务的体系结构的元素" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-6.jpg" />
						<br />
				</font>
		</p>
		<p>
				<font size="2">体系结构堆栈分成两半，左边的一半集中于体系结构的功能性方面，而右边的一半集中于体系结构的服务质量方面。这些元素详细描述如下：</font>
		</p>
		<p>
				<font size="2">功能性方面包括：</font>
		</p>
		<ul>
				<li>
						<font size="2">传输是一种机制，用于将来自服务使用者的服务请求传送给服务提供者，并且将来自服务提供者的响应传送给服务使用者。 </font>
				</li>
				<li>
						<font size="2">服务通信协议是一种经过协商的机制，通过这种机制，服务提供者和服务使用者可以就将要请求的内容和将要返回的内容进行沟通。 </font>
				</li>
				<li>
						<font size="2">服务描述是一种经过协商的模式，用于描述服务是什么、应该如何调用服务以及成功地调用服务需要什么数据。 </font>
				</li>
				<li>
						<font size="2">服务描述实际可供使用的服务。 </font>
				</li>
				<li>
						<font size="2">业务流程是一个服务的集合，可以按照特定的顺序并使用一组特定的规则进行调用，以满足业务要求。注意，可以将业务流程本身看作是服务，这样就产生了业务流程可以由不同粒度的服务组成的观念。 </font>
				</li>
				<li>
						<font size="2">服务注册中心是一个服务和数据描述的存储库，服务提供者可以通过服务注册中心发布它们的服务，而服务使用者可以通过服务注册中心发现或查找可用的服务。服务注册中心可以给需要集中式存储库的服务提供其他的功能。 </font>
				</li>
		</ul>
		<p>
				<font size="2">服务质量方面包括：</font>
		</p>
		<ul>
				<li>
						<font size="2">策略是一组条件和规则，在这些条件和规则之下，服务提供者可以使服务可用于使用者。策略既有功能性方面，也有与服务质量有关的方面；因此，我们在功能和服务质量两个区中都有策略功能。 </font>
				</li>
				<li>
						<font size="2">安全性是规则集，可以应用于调用服务的服务使用者的身份验证、授权和访问控制。 </font>
				</li>
				<li>
						<font size="2">传输是属性集，可以应用于一组服务，以提供一致的结果。例如，如果要使用一组服务来完成一项业务功能，则所有的服务必须都完成，或者没有一个完成。 </font>
				</li>
				<li>
						<font size="2">管理是属性集，可以应用于管理提供的服务或使用的服务。 </font>
				</li>
		</ul>
		<p>
				<a name="N1015F">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">SOA 协作</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">图 2-7 展示了面向服务的体系结构中的协作。这些协作遵循“查找、绑定和调用”范例，其中，服务使用者执行动态服务定位，方法是查询服务注册中心来查找与其标准匹配的服务。如果服务存在，注册中心就给使用者提供接口契约和服务的端点地址。下图展示了面向服务的体系结构中协作支持“查找、绑定和调用”范例的实体。</font>
		</p>
		<p>
				<br />
				<a name="N1016A">
						<b>
								<font size="2">图 2-7 面向服务的体系结构中的协作</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="Figure 2-7 Collaborations in a service-oriented architecture" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-7.jpg" />
						<br />
				</font>
		</p>
		<p>
				<font size="2">面向服务的体系结构中的角色包括：</font>
		</p>
		<ul>
				<li>
						<font size="2">服务使用者：服务使用者是一个应用程序、一个软件模块或需要一个服务的另一个服务。它发起对注册中心中的服务的查询，通过传输绑定服务，并且执行服务功能。服务使用者根据接口契约来执行服务。 </font>
				</li>
				<li>
						<font size="2">服务提供者：服务提供者是一个可通过网络寻址的实体，它接受和执行来自使用者的请求。它将自己的服务和接口契约发布到服务注册中心，以便服务使用者可以发现和访问该服务。 </font>
				</li>
				<li>
						<font size="2">服务注册中心：服务注册中心是服务发现的支持者。它包含一个可用服务的存储库，并允许感兴趣的服务使用者查找服务提供者接口。 </font>
				</li>
		</ul>
		<p>
				<font size="2">面向服务的体系结构中的每个实体都扮演着服务提供者、使用者和注册中心这三种角色中的某一种（或多种）。面向服务的体系结构中的操作包括：</font>
		</p>
		<ul>
				<li>
						<font size="2">发布：为了使服务可访问，需要发布服务描述以使服务使用者可以发现和调用它。 </font>
				</li>
				<li>
						<font size="2">发现：服务请求者定位服务，方法是查询服务注册中心来找到满足其标准的服务。 </font>
				</li>
				<li>
						<font size="2">绑定和调用：在检索完服务描述之后，服务使用者继续根据服务描述中的信息来调用服务。 </font>
				</li>
		</ul>
		<p>
				<font size="2">面向服务的体系结构中的构件包括：</font>
		</p>
		<ul>
				<li>
						<font size="2">服务：可以通过已发布接口使用服务，并且允许服务使用者调用服务。 </font>
				</li>
				<li>
						<font size="2">服务描述：服务描述指定服务使用者与服务提供者交互的方式。它指定来自服务的请求和响应的格式。服务描述可以指定一组前提条件、后置条件和/或服务质量 (QoS) 级别。 </font>
				</li>
		</ul>
		<p>
				<font size="2">除了动态服务发现和服务接口契约的定义之外，面向服务的体系结构还具有以下特征：</font>
		</p>
		<ul>
				<li>
						<font size="2">服务是自包含和模块化的。 </font>
				</li>
				<li>
						<font size="2">服务支持互操作性。 </font>
				</li>
				<li>
						<font size="2">服务是松散耦合的。 </font>
				</li>
				<li>
						<font size="2">服务是位置透明的。 </font>
				</li>
				<li>
						<font size="2">服务是由组件组成的组合模块。 </font>
				</li>
		</ul>
		<p>
				<font size="2">这些特征也是满足电子商务按需操作环境的要求的主要特征，如第 301 页“e-business on demand and Service-oriented architecture”所定义的。</font>
		</p>
		<p>
				<font size="2">最后，我们需要说明的是，面向服务的体系结构并不是一个新的概念。如图 2-8 所示，面向服务的体系结构所涉及的技术至少包括 CORBA、DCOM 和 J2EE。面向服务的体系结构的早期采用者还曾成功地基于消息传递系统（如 IBM WebSphere MQ）创建过他们自己的面向服务企业体系结构。最近，SOA 的活动舞台已经扩展到包括 World Wide Web (WWW) 和 Web 服务。</font>
		</p>
		<p>
				<br />
				<a name="N101BE">
						<b>
								<font size="2">图 2-8 面向服务的体系结构的不同实现</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="图 2-8 面向服务的体系结构的不同实现" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-8.jpg" />
						<br />
				</font>
		</p>
		<p>
				<a name="N101CB">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">SOA 范围中的服务</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">在面向服务的体系结构中，映射到业务功能的服务是在业务流程分析的过程中确定的。服务可以是细粒度的，也可以是粗粒度的，这取决于业务流程。每个服务都有定义良好的接口，通过该接口就可以发现、发布和调用服务。 企业可以选择将自己的服务向外发布到业务合作伙伴，也可以选择在组织内部发布服务。服务还可以由其他服务组合而成。</font>
		</p>
		<p>
				<a name="N101D4">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">服务与组件</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">服务是粗粒度的处理单元，它使用和产生由值传送的对象集。它与编程语言术语中的对象不同。相反，它可能更接近于业务事务（如 CICS 或 IMS 事务）的概念而不是远程 CORBA 对象的概念。</font>
		</p>
		<p>
				<font size="2">服务是由一些组件组成的，这些组件一起工作，共同提供服务所请求的业务功能。因此，相比之下，组件比服务的粒度更细。另外，虽然服务映射到业务功能，但是组件通常映射到业务实体和操作它们的业务规则。作为一个示例，让我们看一看 WS-I 供应链管理（WS-I Supply Chain Management）样本的定购单（PurchaseOrder）组件模型，如图 2-9 所示。</font>
		</p>
		<p>
				<br />
				<a name="N101E2">
						<b>
								<font size="2">图 2-9 定购单组件模型</font>
						</b>
				</a>
				<br />
				<font size="2">
						<img alt="图 2-9 定购单组件模型" src="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/figure2-9.jpg" />
						<br />
				</font>
		</p>
		<p>
				<font size="2">在基于组件的设计中，可以创建组件来严格匹配业务实体（如顾客（Customer）、定购单（Purchase Order）、定购项（Order Item）），并且封装匹配这些实体所期望的行为的行为。</font>
		</p>
		<p>
				<font size="2">例如，定购单（Purchase Order）组件提供获取关于已定购的产品列表和定购的总额的信息的功能；定购项（Order Item）组件提供获取关于已定购的产品的数量和价格的信息的功能。每个组件的实现都封装在接口的后面。因此，定购单（Purchase Order）组件的用户不知道定购单（Purchase Order）表的模式、计算税金的算法、以及定单总额中的回扣和/或折扣。</font>
		</p>
		<p>
				<font size="2">在面向服务的设计中，不能基于业务实体设计服务。相反，每个服务都是管理一组业务实体中的操作的完整单元。例如，顾客服务将响应来自任何其他系统或需要访问顾客信息的服务的请求。顾客服务可以处理更新顾客信息的请求；添加、更新、删除投资组合；以及查询顾客的定单历史。顾客服务拥有所有与它管理的顾客有关的数据，并且能够代表调用方进行其他服务查询，以提供统一的顾客服务视图。这意味着服务是一个管理器对象，它创建和管理它的一组组件。</font>
		</p>
		<p>
				<br />
		</p>
		<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tbody>
						<tr>
								<td>
										<font size="2">
												<img height="1" alt="" src="http://www.ibm.com/i/v14/rules/blue_rule.gif" width="100%" />
												<br />
												<img height="6" alt="" src="http://www.ibm.com/i/c.gif" width="8" border="0" />
										</font>
								</td>
						</tr>
				</tbody>
		</table>
		<table class="no-print" cellspacing="0" cellpadding="0" align="right">
				<tbody>
						<tr align="right">
								<td>
										<font size="2">
												<img height="4" alt="" src="http://www.ibm.com/i/c.gif" width="100%" />
												<br />
										</font>
										<table cellspacing="0" cellpadding="0" border="0">
												<tbody>
														<tr>
																<td valign="center">
																		<font size="2"> <br /></font>
																</td>
																<td valign="top" align="right">
																		<a class="fbox" href="http://www-128.ibm.com/developerworks/cn/webservices/ws-ovsoa/#main">
																				<b>
																				</b>
																		</a>
																</td>
														</tr>
												</tbody>
										</table>
								</td>
						</tr>
				</tbody>
		</table>
		<br />
		<br />
		<p>
				<a name="4">
						<span class="atitle">
								<font face="Arial" size="2">第四部分：面向服务的体系结构所带来的好处</font>
						</span>
				</a>
		</p>
		<p>
				<font size="2">如前所述，企业正在处理两个问题：迅速地改变的能力和降低成本的要求。为了保持竞争力，企业必须快速地适应内部因素（如兼并和重组）或外部因素（如竞争能力和顾客要求）。需要经济而灵活的 IT 基础设施来支持企业。</font>
		</p>
		<p>
				<font size="2">我们可以认识到，采用面向服务的体系结构将给我们带来几方面的好处，有助于我们在今天这个动荡的商业环境中取得成功：</font>
		</p>
		<p>
				<a name="N10204">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">利用现有的资产。</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">SOA 提供了一个抽象层，通过这个抽象层，企业可以继续利用它在 IT 方面的投资，方法是将这些现有的资产包装成提供企业功能的服务。组织可以继续从现有的资源中获取价值，而不必重新从头开始构建。</font>
		</p>
		<p>
				<a name="N1020D">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">更易于集成和管理复杂性。</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">在面向服务的体系结构中，集成点是规范而不是实现。这提供了实现透明性，并将基础设施和实现发生的改变所带来的影响降到最低限度。通过提供针对基于完全不同的系统构建的现有资源和资产的服务规范，集成变得更加易于管理，因为复杂性是隔离的。当更多的企业一起协作提供价值链时，这会变得更加重要。</font>
		</p>
		<p>
				<a name="N10216">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">更快的响应和上市速度。</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">从现有的服务中组合新的服务的能力为需要灵活地响应苛刻的商业要求的组织提供了独特的优势。通过利用现有的组件和服务，可以减少完成软件开发生命周期（包括收集需求、进行设计、开发和测试）所需的时间。这使得可以快速地开发新的业务服务，并允许组织迅速地对改变做出响应和减少上市准备时间。</font>
		</p>
		<p>
				<a name="N1021F">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">减少成本和增加重用。</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">通过以松散耦合的方式公开的业务服务，企业可以根据业务要求更轻松地使用和组合服务。这意味资源副本的减少、以及重用和降低成本的可能性的增加。</font>
		</p>
		<p>
				<a name="N10228">
						<span class="smalltitle">
								<strong>
										<font face="Arial" size="2">说到做到</font>
								</strong>
						</span>
				</a>
		</p>
		<p>
				<font size="2">通过 SOA，企业可以未雨绸缪，为未来做好充分的准备。SOA 业务流程是由一系列业务服务组成的，可以更轻松地创建、修改和管理它来满足不同时期的需要。</font>
		</p>
		<p>
				<font size="2">SOA 提供了灵活性和响应能力，这对于企业的生存和发展来说是至关重要的。但是面向服务的体系结构决不是灵丹妙药，而迁移到 SOA 也并非一件可以轻而易举就完成的事情。请别指望一个晚上就将整个企业系统迁移到面向服务的体系结构，我们推荐的方法是，在业务要求出现或露出苗头时迁移企业功能的适当部分。</font>
		</p><img src ="http://www.blogjava.net/chenpengyi/aggbug/42023.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-04-19 23:29 <a href="http://www.blogjava.net/chenpengyi/archive/2006/04/19/42023.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SOA的三个方面</title><link>http://www.blogjava.net/chenpengyi/archive/2006/04/08/39957.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sat, 08 Apr 2006 03:18:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/04/08/39957.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/39957.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/04/08/39957.html#Feedback</comments><slash:comments>45</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/39957.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/39957.html</trackback:ping><description><![CDATA[<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的三个方面（译）</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原始</span>
						<span lang="EN-US">url: <a href="http://www.davidchappell.com/blog/">http://www.davidchappell.com/blog/</a></span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这两天看到了一篇不错的关于</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的文章，不敢独享，只可惜是</span>
						<span lang="EN-US">E</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文，所以抽空翻译了一下，跟大家分享。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<i style="mso-bidi-font-style: normal">
						<font size="2">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以下为本博客使用说明</span>
								<span lang="EN-US">
										<o:p>
										</o:p>
								</span>
						</font>
				</i>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我们的</span>
								<span lang="EN-US">BlogJava</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">博客特别为大家的方便阅读提供了以下快捷功能：</span>
								<span lang="EN-US">
										<o:p>
										</o:p>
								</span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">需要查找关键字―――――――――――――――――请按</span>
								<span lang="EN-US">CTRL</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</span>
								<span lang="EN-US">F<o:p></o:p></span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">想以后还能看（添加到收藏夹）――――――――――请按</span>
								<span lang="EN-US">CTRL</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</span>
								<span lang="EN-US">D <o:p></o:p></span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<i style="mso-bidi-font-style: normal">
						<font size="2">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">想刷新一下网页内容―――――――――――――――请按</span>
								<span lang="EN-US">F5 <o:p></o:p></span>
						</font>
				</i>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（应该不需要的，因为</span>
								<span lang="EN-US">BlogJava</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经完全实现了</span>
								<span lang="EN-US">Ajax</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）</span>
								<span lang="EN-US">
										<o:p>
										</o:p>
								</span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">想保存到硬盘上―――――――――――――――――请按</span>
								<span lang="EN-US">CTRL</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</span>
								<span lang="EN-US">S<o:p></o:p></span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">需要调用本地（</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span lang="EN-US" style="FONT-FAMILY: 华文仿宋">Jini</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）服务查看源代码――――――――在网页空白处点击鼠标右键＋</span>
								<span lang="EN-US">V<o:p></o:p></span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不想看了――――――――――――――――――――请按</span>
								<span lang="EN-US">ALT</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</span>
								<span lang="EN-US">F4<o:p></o:p></span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如果是标签页浏览器―――――――――――――――请按</span>
								<span lang="EN-US">CTRL</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</span>
								<span lang="EN-US">W<o:p></o:p></span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<i style="mso-bidi-font-style: normal">
						<span lang="EN-US">
								<o:p>
										<font size="2"> </font>
								</o:p>
						</span>
				</i>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实话说，我们比</span>
								<span lang="EN-US">Google</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</span>
								<span lang="EN-US">Gmail</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">还早实现方便的快捷方式，厉害吧。这里不需要对我表示敬意，只需要对博客的建设者</span>
								<span lang="EN-US">Dudu</span>
						</i>
						<i style="mso-bidi-font-style: normal">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">老兄留言表示一下感谢就好了。</span>
								<span lang="EN-US">
										<o:p>
										</o:p>
								</span>
						</i>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<i style="mso-bidi-font-style: normal">
						<span lang="EN-US">
								<o:p>
										<font size="2"> </font>
								</o:p>
						</span>
				</i>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在开始的时候先介绍一下</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的概念。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">什么是</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">？</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的全称是</span>
						<span lang="EN-US">Service Oriented Architecture </span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，面向服务架构。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">她是指为了解决在</span>
						<span lang="EN-US">Internet</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">环境下业务集成的需要，通过连接能完成特定任务的独立功能实体实现的一种软件系统架构。这句话的意思就是</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不是一门语言或具体的技术，而是一种软件的系统架构，应该说更像一种模式，是一种为了解决复杂的</span>
						<span lang="EN-US">Internet</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">业务应用而提出的一种体系结构（在我感觉里，这种架构的提出更像</span>
						<span lang="EN-US">MVC</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模式的提出，不过我们总喜欢用模式啊，架构啊的话来体现自己是行业内专业的人，但其实无论说是模式还是架构，这都只是一些名词，如果组合现拥有的技术去实现自己的应用才是最有用的，就不用多谈所谓的架构还是模式了）。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
				</font>
		</p>
		<span lang="EN-US">
				<o:p>
						<font size="2"> </font>
				</o:p>
		</span>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">译文</span>
						<span lang="EN-US">(</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">翻译：陈朋奕，如果有错误请来我的博客指出</span>
						<span lang="EN-US">)</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">：</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在做软件开发的人，架构这个词经常被用在三种不同的场合中：应用体系架构（</span>
						<span lang="EN-US">Application Architecture</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">），基础体系架构</span>
						<span lang="EN-US">(Infrastructure Architecture)</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以及企业架构体系</span>
						<span lang="EN-US">(Enterprise Architecture)</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。而</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的概念横跨了这三种体系，然而很多人在谈到</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的时候总喜欢不自觉的把</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">跟其中的一种混为一谈。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">譬如开发者大多对如何建立</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">应用感兴趣，因此他们关注的趋向更多是</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的应用程序的体系架构方面。而</span>
						<span lang="EN-US">Web Serivces</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">管理工具的卖主一般认为</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">主要是关于基础组件体系结构的，同样的，用户群体会认为</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是用于企业业务应用结构的。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这三种观点都是有意义的，因为这映射了</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的三个应用层面。下面是关于这三个方面的一些简单的讲解：</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">――――</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">应用体系架构：是建立</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务的指导、模式以及实现的方法。关注面向服务软件平台和个体应用的开发者会特别强调这个方面。如</span>
						<span lang="EN-US">Microsoft’s Windows Communication Foundation</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（</span>
						<span lang="EN-US">WCF </span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">微软视窗通讯基础组件）以及最近提出的</span>
						<span lang="EN-US">Service Component Architecture (SCA </span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务构件体系</span>
						<span lang="EN-US">)</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">就是跟</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这个方面的应用实现。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">――――</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">基础体系架构：是管理和操作</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务的指导、模式以及实现的方法。</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的大思想家们有时也会承认自己在这个方面有不足，但真正去实现这些功能的人却知道这些方面的重要性。一般来说，卖主会特别喜欢把关注点和行动实现集中在这里。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">――――</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">业务体系架构：利用</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">并从</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中获得商业利益的指导、模式以及实现的方法。而关于技术的讨论仍然会在这里出现，但更多的关注点已经转移到了人的身上（以人为本？事实上，我对</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">面临的最大挑战是人的观点——人通常比技术更多问题——有一些自己的看法）。不过，来自</span>
						<span lang="EN-US">ZapThink</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的分析家们通常对</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">提出的建议都是在强调这个方面。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>
								<font size="2"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span lang="EN-US">
								<span style="mso-tab-count: 1">       </span>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我看到过很多人关于</span>
						<span lang="EN-US">SOA</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的意义（甚至是价值）的争论，其实他们的争论只是关于应用程序体系架构主导还是企业体系架构主导而已。这些专业术语仅仅是在我们都认同的情况下才会体现其价值的，因此当别人在讨论这个被过度使用的术语的时候我们应该保持清晰的思路，清楚我们到底讲的是什么才是我们应该把握的方向。</span>
				</font>
		</p><img src ="http://www.blogjava.net/chenpengyi/aggbug/39957.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-04-08 11:18 <a href="http://www.blogjava.net/chenpengyi/archive/2006/04/08/39957.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>计算机缩写术语完全介绍(转自ChinaUnix)</title><link>http://www.blogjava.net/chenpengyi/archive/2006/04/08/39953.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sat, 08 Apr 2006 02:26:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/04/08/39953.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/39953.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/04/08/39953.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/39953.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/39953.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天在ChinaUnix看资料，无意看到一篇好文，感谢作者那么认真为大家收集，特意转载。以下为本博客使用说明我们的BlogJava博客特别为大家的方便阅读提供了以下快捷功能：需要查找关键字―――――――――――――――――请按CTRL＋F想以后还能看（添加到收藏夹）――――――――――请按CTRL＋D 想刷新一下网页内容―――――――――――――――请按F5 （应该不需要的，因为BlogJava已...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2006/04/08/39953.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/39953.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-04-08 10:26 <a href="http://www.blogjava.net/chenpengyi/archive/2006/04/08/39953.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java 6 Mustang 从老虎变成了野马……好事还是坏事？</title><link>http://www.blogjava.net/chenpengyi/archive/2006/04/02/38674.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sat, 01 Apr 2006 17:06:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2006/04/02/38674.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/38674.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2006/04/02/38674.html#Feedback</comments><slash:comments>17</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/38674.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/38674.html</trackback:ping><description><![CDATA[<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">上个月就知道</span>
						<span lang="EN-US">Java 6 </span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经推出了，但还是不知道到底如何，也因为工作忙的关系没有机会去体验这个</span>
						<span lang="EN-US">Java 6</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">到底有什么改变。只是知道改了个名字，从</span>
						<span lang="EN-US">Java 5.0</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</span>
						<span lang="EN-US">tiger</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（老虎）变成了</span>
						<span lang="EN-US">Mustang</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（墨西哥和北美平原的野马），呵呵，个人感觉好像是弱了，从这么猛的一个庞然大物变成了没有攻击力的野马，虽然只是名字的改变，不过从一个</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">程序员心里想来也许会觉得有点悲哀，说实话，看见这个名字，有种心有戚戚焉的感觉。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">也许这正是</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">无奈现状的体现吧，本来是大户人家的宝贝，现在变成沦落荒野的野马，要跟荒原的狐狗抢食</span>
						<span lang="EN-US">……</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在桌面程序上面，出了</span>
						<span lang="EN-US">IBM</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">那么热心的开发了</span>
						<span lang="EN-US">Eclipse</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">之外，似乎</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">毫无建树，而</span>
						<span lang="EN-US">Web</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">上，</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">更是被</span>
						<span lang="EN-US">.Net</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和其他带脚本性质的语言蚕食领地，</span>
						<span lang="EN-US">.Net</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">当然是没话说的，因为这可是大户人家的孩子，身上带着微软皇族的血统，背靠如此雄厚的资本，自然不会弱，而</span>
						<span lang="EN-US">PHP/Python</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等语言也以其灵活的结构和多年积累的成熟的多样的开发框架一步一步的侵食</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的领地，我想让</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">世界最痛心的也许不是这些，而是由</span>
						<span lang="EN-US">Ruby</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">语言引起的</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">世界的内讧</span>
						<span lang="EN-US">……</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对</span>
						<span lang="EN-US">Ruby</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这门语言，说实话，我真的不以为然，甚至觉得这不算语言。当初学习</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的时候，是从</span>
						<span lang="EN-US">C</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">语言转过来的，</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">给我的印象真的太美丽了，那么美妙的结构，竟然能如此完美的用程序语言去体现世界。而接触</span>
						<span lang="EN-US">Ruby</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，一点也没有接触</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">时候的那种感觉，但是我不得不承认</span>
						<span lang="EN-US">Ruby On Rails</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">真的是快捷而且方便的</span>
						<span lang="EN-US">Web</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">开发平台。那么轻松的几百行代码就能够完成</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（</span>
						<span lang="EN-US">Jsp+Servlet</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）上千行代码（有个朋友跟我说，他尝试过将一个</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的简单</span>
						<span lang="EN-US">Web</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">程序，据说好像是网上商城，改到</span>
						<span lang="EN-US">Ruby</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">平台，上</span>
						<span lang="EN-US">4</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">～</span>
						<span lang="EN-US">5</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">千行的</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码，仅仅用了</span>
						<span lang="EN-US">800</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">行</span>
						<span lang="EN-US">Ruby</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码）。这样的结果难道还不够震撼吗？</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">语言的优美是大家公认的，但如果是为了仅有的优美而付出大量的劳动，真的必要吗？也许正如</span>
						<span lang="EN-US">Lansa</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">公司的高级程序设计师</span>
						<span lang="EN-US">Roc.Chen</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">说的那样，</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">更适合在学校里进行</span>
						<span lang="EN-US">OO</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">软件的教学，因为他真的很美丽。当年</span>
						<span lang="EN-US">Smalltalk</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">也是很优美的语言，为什么还是没有流行呢？语言的流行程度也许真的跟优美有否没有直接关系，想来</span>
						<span lang="EN-US">VB</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">真的是一门很烂的语言，但如此流行，也不能不承认这个道理的正确性了。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">也许改名是因为要将</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这个重量级的语言从吃遍四方的笨重的老虎变成可以轻松跑跳的野马吧，现在</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的世界太笨重了，有复杂的</span>
						<span lang="EN-US">EJB</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，多种不互相兼容开发模式（</span> Tomcat/SunJ2EE <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等下各有各的开发模式），多个巨头在做自己不同的</span><span lang="EN-US">IDE</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（</span><span lang="EN-US">Eclipse /Net Beans/ IDEA/ J Builders/ Workshop</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等），多个企业在做自己的</span><span lang="EN-US">J2EE</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务器（</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt">Geronimo /Web sphere/ Weblogic</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">等</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）……意见经常不能统一，在这点上我真的认同微软的方式，这样至少使用的人能很快的上手，能更快更好的完善自己的开发模式和开发平台。</span></font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我觉得</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经在让自己变得轻量级，变得灵巧了，让自己在各个方面都能适应快速开发，就像现在的</span>
						<span lang="EN-US">Ruby</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一样，而</span>
						<span lang="EN-US">Spring</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的受欢迎程度和《</span>
						<span lang="EN-US">J2EE without EJB</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">》的热卖也说明了这点。也许</span>
						<span lang="EN-US">Ruby</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">语言的出现对</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来说是好事，因为至少这打击不是致命的，能让</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的设计者痛定思痛，寻求变革。</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<font size="2">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这</span>
						<span lang="EN-US">Java 6 Mustang</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的出现也许正是为了这个目的吧。那下面就说说</span>
						<span lang="EN-US">Java 6 </span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的特点吧：</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">支持</span>
						<span lang="EN-US">Web Service</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（</span>
						<span lang="EN-US">Java Web</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的开发心头之痛啊，终于搞定了）</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">提高</span>
						<span lang="EN-US">JVM</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">性能，对比</span>
						<span lang="EN-US">Java 5.0</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</span>
						<span lang="EN-US">Mustang Hotspot JVM </span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有</span>
						<span lang="EN-US">58</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">％的性能提升（早该如此了，</span>
						<span lang="EN-US">Java</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的诟病就是慢，但我还没尝试过）</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">直接嵌入</span>
						<span lang="EN-US">JSR-223</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">规定的脚本语言</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">增加对</span>
						<span lang="EN-US">JavaScript</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的支持，嵌入了</span>
						<span lang="EN-US" style="COLOR: black; FONT-FAMILY: Tahoma; mso-bidi-font-size: 10.5pt">Rhino</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">（即</span>
						<span lang="EN-US" style="COLOR: black; FONT-FAMILY: Tahoma; mso-bidi-font-size: 10.5pt">JavaScript</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">）解释器（好东西来的，也许是因为</span>
						<span lang="EN-US" style="COLOR: black; FONT-FAMILY: Tahoma; mso-bidi-font-size: 10.5pt">Ruby</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">内置的</span>
						<span lang="EN-US" style="COLOR: black; FONT-FAMILY: Tahoma; mso-bidi-font-size: 10.5pt">Ajax</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">对其的影响吧）</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">支持</span>
						<span lang="EN-US" style="COLOR: black; FONT-FAMILY: Tahoma; mso-bidi-font-size: 10.5pt">JDBC 4</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">规范</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">扩展</span>
						<span lang="EN-US" style="COLOR: black; FONT-FAMILY: Tahoma; mso-bidi-font-size: 10.5pt">Java.io.File</span>
						<span style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: Tahoma">，充分利用磁盘空间</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">安全上新增了对</span>
						<span lang="EN-US">XML</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数字签名的支持，整合</span>
						<span lang="EN-US">Java Generic Security Services</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">及</span>
						<span lang="EN-US">Kerberos</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，支持国际域名和资源标识符和网络参数标题访问</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<font size="2">
						<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
								<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">还有好多，不过就没前面的那么重要了</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">
				<font size="2">
						<span lang="EN-US">Sun</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经提供了演示版本的下载，我已经下载了，同时也下载了</span>
						<span lang="EN-US">Sun</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</span>
						<span lang="EN-US">Net Beans IDE</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，准备对这个新的</span>
						<span lang="EN-US">JDK</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">进行测试，测试结果会以最快的速度向同志们报告。</span>
						<br />===============================================================================<br />/听了白痴兄弟的话，想说几句话/<br />上面只是我一个人的看法，也只是随便说说而已，犯不着大家这么生气的。况且这仅仅是晚上涂鸦写写，告诉大家一些消息，评论只是个人观点。</font> </p><img src ="http://www.blogjava.net/chenpengyi/aggbug/38674.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2006-04-02 01:06 <a href="http://www.blogjava.net/chenpengyi/archive/2006/04/02/38674.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>投资组合和财富（最近的阅读论文）</title><link>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19238.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 10 Nov 2005 16:16:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19238.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/19238.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19238.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/19238.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/19238.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 2004组合投资与财富状况Journal of Financial Economics Volume 72, Issue 3 , June 2004, Pages 457-484 Portfolio choice and health status*1 AbstractThis paper analyzes the role health status plays in house...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2005/11/11/19238.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/19238.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-11-11 00:16 <a href="http://www.blogjava.net/chenpengyi/archive/2005/11/11/19238.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>股利政策的几个大理论</title><link>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19237.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 10 Nov 2005 16:14:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19237.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/19237.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19237.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/19237.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/19237.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 19.3pt 0pt 21.25pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 15.6pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">股利信号传递理论。其理论基础是米勒和莫迪格利安尼（</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">Miller and Modigliani</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">，</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">1961</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">）的股利无关论定理（简称</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">MM</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">定理）。他们认为，在完全的资本市场条件（</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">MM</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">的基本假设）下，股利政策不会影响公司的价值，公司的价值增加与否完全由其投资决策决定。也就是说，在公司投资决策给定的条件下，股利政策不会产生任何效果。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">MM</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">运用股利传递公司未来盈利信息理论解释了公司股票价格会随股利的增减而变动这一重要事实。具体地，股利的增减所引起的股票价格的变动，并不能归因于股利增减本身，而应归因于股利所包含的有关企业未来盈利的信息。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 19.3pt 0pt 21.25pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 15.6pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">股利信号传递理论的实证分析工作由林特（</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-font-kerning: 0pt">John Lintner</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">，</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-font-kerning: 0pt">1956</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">）首先研究。林特通过对美国</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-font-kerning: 0pt">600</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">家上市公司财务经理的问卷调查和实证分析，得出股利传递公司盈利信号内容的实证结果。他认为，在</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-font-kerning: 0pt">1946</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">—</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-font-kerning: 0pt">1954</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">年间，美国各上市公司一般都保持一个长期的目标股利支付率，公司的股利变化与长期可持续的净收益水平相一致；公司管理者特别注重股利水平的变化，除非管理者确信公司增长的收益足以支付长期增加的股利时，才会增发股利，并且，公司管理者不会轻易削减股利。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 19.3pt 0pt 21.25pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 15.6pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">股利分配代理成本理论。该理论是由<SPAN style="COLOR: #ff6600">詹森、迈克林（</SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">Jensen and Meckling</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">，</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">1976</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">）和伊斯特布鲁克（</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">Easterbrook</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">，</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: #ff6600; mso-font-kerning: 0pt">1984</SPAN><SPAN style="FONT-SIZE: 12pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">）创立的。詹森和迈克林以委托—代理理论为研究框架，通过研究公司股东、管理者和债权人三者的利益动机及分配关系，得出股利分配代理成本理论。他们认为，股东为避免自身利益损失，要监督和约束管理者的行为，势必导致代理成本的发生。但股东越保守，代理成本就越高，对债权人就越有利，对股东就越不利。因此，股东需要在这两者之间平衡利弊得失。伊斯特布鲁克认为，股利支付可以降低代理成本。股东可以通过保持一个稳定不变的股利支付水平，以避免权益资本的累积，同时，又促使企业向外部筹资。这就迫使管理者必须全力以赴经营企业，才能以优良的业绩在资本市场上筹集资金。结果，股东可以通过调节企业的负债比例来降低代理成本，以实现自身利益最大化。这就解释了为什么有些公司在发放股利的同时又对外筹资的现象。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 19.3pt 0pt 21.25pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 15.6pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">股利顾客效应理论。该理论最先也是由米勒和莫迪格利安尼提出来的。他们注意到，有些股东偏好未来的资本利得，从而购买当期股利支付率低但成长性好的股票；有些股东则倾向于当期股利收入，因而喜欢股利支付高的股票，即所谓的股利顾客效应。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-font-kerning: 0pt">MM</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">认为，既然公司不可能同时满足所有股东的利益要求，公司就不必考虑股东对股利的具体意愿，而应根据自身的特点制定适合企业生产经营需要的股利政策，并且自然有一批投资者偏好公司的股票。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><o:p></o:p></SPAN></P><img src ="http://www.blogjava.net/chenpengyi/aggbug/19237.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-11-11 00:14 <a href="http://www.blogjava.net/chenpengyi/archive/2005/11/11/19237.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>金融学最新的研究进展</title><link>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19235.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 10 Nov 2005 16:12:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19235.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/19235.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/11/11/19235.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/19235.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/19235.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 第二节金融学年会入选论文摘要&nbsp;一、国际金融1组——人民币汇率和汇率制度&nbsp;1、人民币实际汇率错位的经济效应实证研究吴丽华、王锋：厦门大学金融系副教授&nbsp;内容摘要：运用行为均衡汇率模型和协整理论，测算1984-2004年人民币实际汇率错位的季度状况，结果表明，人民币实际汇率在此期间经历了两个阶段的币值低估和三个阶段的币值高估。结合这21年间中国主...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2005/11/11/19235.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/19235.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-11-11 00:12 <a href="http://www.blogjava.net/chenpengyi/archive/2005/11/11/19235.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>重要的会计基本理论</title><link>http://www.blogjava.net/chenpengyi/archive/2005/11/03/17942.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 03 Nov 2005 04:46:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/11/03/17942.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/17942.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/11/03/17942.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/17942.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/17942.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 会计基本理论会计理论研究的百年回顾：会计计量视角(1)会计的核心是计量，历史成本计量模式已越来越成为经济发展的桎梏，基于价值和现值理念的公允价值计量模式正方兴未艾。本文以会计计量理论的变迁为线索，评述会计理论的百年历史及其与经济理论的渊源关系。早期的规范会计理论中，归纳学派通过归纳现存实务形成会计理论，他们注重公认会计原则的研究，坚持历史成本原则；演绎学派则从少数概念出发构建会计理论框...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2005/11/03/17942.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/17942.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-11-03 12:46 <a href="http://www.blogjava.net/chenpengyi/archive/2005/11/03/17942.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>从MySQL得到最大的性能（转载）</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/29/17324.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sat, 29 Oct 2005 02:49:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/29/17324.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/17324.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/29/17324.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/17324.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/17324.html</trackback:ping><description><![CDATA[<P align=left><FONT size=2><FONT size=3><STRONG>10 从MySQL得到最大的性能<BR></STRONG></FONT><BR>优化是一项复杂的任务，因为它最终需要对整个系统的理解。当用你的系统/应用的小知识做一些局部优化是可能的时候，你越想让你的系统更优化，你必须知道它也越多。<BR><BR>因此，本章将试图解释并给出优化MySQL的不同方法的一些例子。但是记住总是有某些(逐渐变难)是系统更快的方法留着去做。<BR><BR>10.1 优化概述<BR>为了使一个系统更快的最重要部分当然是基本设计。你也需要知道你的系统将做这样的事情，那就是你的瓶颈。<BR><BR>最常见的瓶颈是：<BR><BR>磁盘寻道。磁盘花时间找到一个数据，用在1999年的现代磁盘其平均时间通常小于10ms，因此理论上我们能大约一秒寻道 1000 次。这个时间用新磁盘提高很慢并且很难对一个表优化。优化它的方法是将数据散布在多个磁盘上。<BR>当磁盘在我们需要读数据的正确位置时，磁盘读/写。用1999年的现代，一个磁盘传输类似10-20Mb/s。这必寻道更容易优化，因为你能从多个磁盘并行地读。<BR>CPU周期。当我们读数据进内存时，(或如果它已经在那里)我们需要处理它以达到我们的结果。当我们有相对内存较小的表时，这是最常见的限制因素，但是用小表速度通常不是问题。<BR>内存带宽。当CPU需要超出适合cpu缓存的数据时，缓存带宽就成为内存的一个瓶颈。这是对大多数系统的一个不常见的瓶颈但是你应该知道它。<BR>10.2 系统/编译时和启动参数的调节<BR>我们以系统级的东西开始，因为这些决策的某一些很早就做好了。在其他情况下，快速浏览这部分可能就够了，因为它对大收获并不重要，但是有一个关于在这个层次上收获有多大的感觉总是好的。<BR><BR>使用的缺省OS确实重要！为了最大程度地使用多CPU，应该使用Solaris(因为线程工作得确实不错)或Linux(因为2.2本的核心又确实不错的SMP支持)。而且在32位的机器上，Linux缺省有2G的文件大小限制。当新的文件系统被释出时( XFS )，希望这不久被修正。<BR><BR>因为我们没在很多平台上运行生产MySQL，我们忠告你在可能选择它前，测试你打算运行的平台。<BR><BR>其他建议：<BR><BR>如果你有足够的RAM，你能删除所有交换设备。一些操作系统在某些情况下将使用一个SWAP设备，即使你有空闲的内存。<BR>使用--skip-locking的MySQL选项避免外部锁定。注意这将不影响MySQL功能，只要它仅运行在一个服务器上。只要在你运行myisamchk以前，记得要停掉服务器(或锁定相关部分)。在一些系统上这个开关是强制的，因为外部锁定不是在任何情况下都工作。当用MIT-pthreads编译时，--skip-locking选项缺省为打开(on)，因为flock()没在所有的平台上被MIT-pthreads充分支持。唯一的情况是如果你对同一数据运行MySQL服务器(不是客户)，你不能使用--skip-locking之时，否则对没有先清掉(flushing)或先锁定mysqld服务器的表上运行myisamchk。你仍然能使用LOCK TABLES/ UNLOCK TABLES，即使你正在使用--skip-locking。<BR>10.2.1 编译和链接怎样影响MySQL的速度<BR>大多数下列测试在Linux上并用MySQL基准进行的，但是它们应该对其他操作系统和工作负载给出一些指示。<BR><BR>当你用-static链接时，你得到最快的可执行文件。使用Unix套接字而非TCP/IP连接一个数据库也可给出好一些的性能。<BR><BR>在Linux上，当用pgcc和-O6编译时，你将得到最快的代码。为了用这些选项编译“sql_yacc.cc”，你需要大约200M内存，因为gcc/pgcc需要很多内存使所有函数嵌入（inline）。在配置MySQL时，你也应该设定CXX=gcc以避免包括libstdc++库(它不需要)。<BR><BR>只通过使用一个较好的编译器或较好的编译器选项，在应用中你能得到一个10-30%的加速。如果你自己编译SQL服务器，这特别重要！<BR><BR>在Intel上，你应该例如使用pgcc或Cygnus CodeFusion编译器得到最大速度。我们已经测试了新的 Fujitsu编译器，但是它是还没足够不出错来优化编译MySQL。<BR><BR>这里是我们做过的一些测量表：<BR><BR>如果你以-O6使用pgcc并且编译任何东西，mysqld服务器是比用gcc快11%（用字符串99的版本)。<BR>如果你动态地链接(没有-static)，结果慢了13%。注意你仍能使用一个动态连接的MySQL库。只有服务器对性能是关键的。<BR>如果你使用TCP/IP而非Unix套接字，结果慢7.5%。<BR>在一个Sun SPARCstation 10上，gcc2.7.3是比Sun Pro C++ 4.2快13%。<BR>在Solaris 2.5.1上，在单个处理器上MIT-pthreads比带原生线程的Solaris慢8-12%。以更多的负载/cpus，差别应该变得更大。<BR>由TcX提供的MySQL-Linux的分发用pgcc编译并静态链接。<BR><BR>10.2.2 磁盘问题<BR>正如前面所述，磁盘寻道是一个性能的大瓶颈。当数据开始增长以致缓存变得不可能时，这个问题变得越来越明显。对大数据库，在那你或多或少地要随机存取数据，你可以依靠你将至少需要一次磁盘寻道来读取并且几次磁盘寻道写入。为了使这个问题最小化，使用有低寻道时间的磁盘。<BR>为了增加可用磁盘轴的数量(并且从而减少寻道开销)，符号联接文件到不同磁盘或分割磁盘是可能的。<BR>使用符号连接<BR>这意味着你将索引/数据文件符号从正常的数据目录链接到其他磁盘(那也可以被分割的)。这使得寻道和读取时间更好(如果磁盘不用于其他事情)。见10.2.2.1 使用数据库和表的符号链接。<BR>分割<BR>分割意味着你有许多磁盘并把第一块放在第一个磁盘上，在第二块放在第二个磁盘上，并且第 n块在第(n mod number_of_disks)磁盘上，等等。这意味着，如果你的正常数据大小于分割大小(或完美地排列过)，你将得到较好一些的性能。注意，分割是否很依赖于OS和分割大小。因此用不同的分割大小测试你的应用程序。见10.8 使用你自己的基准。注意对分割的速度差异很依赖于参数，取决于你如何分割参数和磁盘数量，你可以得出以数量级的不同。注意你必须选择为随机或顺序存取优化。<BR>为了可靠，你可能想要使用袭击RAID 0+1(分割+镜像)，但是在这种情况下，你将需要2*N个驱动器来保存N个驱动器的数据。如果你有钱，这可能是最好的选择！然而你也可能必须投资一些卷管理软件投资以高效地处理它。<BR>一个好选择是让稍重要的数据(它能再生)上存在RAID 0磁盘上，而将确实重要的数据(像主机信息和日志文件)存在一个RAID 0+1或RAID N磁盘上。如果因为更新奇偶位你有许多写入，RAID N可能是一个问题。<BR>你也可以对数据库使用的文件系统设置参数。一个容易的改变是以noatime选项挂装文件系统。这是它跳过更新在inode中的最后访问时间，而且这将避免一些磁盘寻道。<BR>10.2.2.1 为数据库和表使用符号链接<BR>你可以从数据库目录移动表和数据库到别处，并且用链接到新地点的符号代替它们。你可能想要这样做，例如，转移一个数据库到有更多空闲空间的一个文件系统。<BR><BR>如果MySQL注意到一个表是一个符号链接，它将解析符号链接并且使用其实际指向的表，它可工作在支持realpath()调用的所有系统上(至少Linux和Solaris支持realpath())！在不支持realpath()的系统上，你应该不同时通过真实路径和符号链接访问表！如果你这样做，表在任何更新后将不一致。<BR><BR>MySQL缺省不支持数据库链接。只要你不在数据库之间做一个符号链接，一切将工作正常。假定你在MySQL数据目录下有一个数据库db1，并且做了一个符号链接db2指向db1：<BR><BR>shell&gt; cd /path/to/datadir<BR>shell&gt; ln -s db1 db2<BR><BR>现在，对在db1中的任一表tbl_a，在db2种也好象有一个表tbl_a。如果一个线程更新db1.tbl_a并且另一个线程更新db2.tbl_a，将有问题。<BR><BR>如果你确实需要这样，你必须改变下列在“mysys/mf_format.c”中的代码：<BR><BR>if (!lstat(to,&amp;stat_buff)) /* Check if it's a symbolic link */<BR>if (S_ISLNK(stat_buff.st_mode) &amp;&amp; realpath(to,buff))<BR><BR>把代码改变为这样：<BR><BR>if (realpath(to,buff))<BR><BR>10.2.3 调节服务器参数<BR>你能用这个命令得到mysqld服务器缺省缓冲区大小：<BR><BR>shell&gt; mysqld --help<BR><BR>这个命令生成一张所有mysqld选项和可配置变量的表。输出包括缺省值并且看上去象这样一些东西：<BR><BR>Possible variables for option --set-variable (-O) are:<BR>back_log current value: 5<BR>connect_timeout current value: 5<BR>delayed_insert_timeout current value: 300<BR>delayed_insert_limit current value: 100<BR>delayed_queue_size current value: 1000<BR>flush_time current value: 0<BR>interactive_timeout current value: 28800<BR>join_buffer_size current value: 131072<BR>key_buffer_size current value: 1048540<BR>lower_case_table_names current value: 0<BR>long_query_time current value: 10<BR>max_allowed_packet current value: 1048576<BR>max_connections current value: 100<BR>max_connect_errors current value: 10<BR>max_delayed_threads current value: 20<BR>max_heap_table_size current value: 16777216<BR>max_join_size current value: 4294967295<BR>max_sort_length current value: 1024<BR>max_tmp_tables current value: 32<BR>max_write_lock_count current value: 4294967295<BR>net_buffer_length current value: 16384<BR>query_buffer_size current value: 0<BR>record_buffer current value: 131072<BR>sort_buffer current value: 2097116<BR>table_cache current value: 64<BR>thread_concurrency current value: 10<BR>tmp_table_size current value: 1048576<BR>thread_stack current value: 131072<BR>wait_timeout current value: 28800<BR><BR>如果有一个mysqld服务器正在运行，通过执行这个命令，你可以看到它实际上使用的变量的值：<BR><BR>shell&gt; mysqladmin variables<BR><BR>每个选项在下面描述。对于缓冲区大小、长度和栈大小的值以字节给出，你能用于个后缀“K”或“M” 指出以K字节或兆字节显示值。例如，16M指出16兆字节。后缀字母的大小写没有关系；16M和16m是相同的。<BR><BR>你也可以用命令SHOW STATUS自一个运行的服务器看见一些统计。见7.21 SHOW语法(得到表、列的信息)。<BR><BR>back_log<BR>要求MySQL能有的连接数量。当主要MySQL线程在一个很短时间内得到非常多的连接请求，这就起作用，然后主线程花些时间(尽管很短)检查连接并且启动一个新线程。back_log值指出在MySQL暂时停止回答新请求之前的短时间内多少个请求可以被存在堆栈中。只有如果期望在一个短时间内有很多连接，你需要增加它，换句话说，这值对到来的TCP/IP连接的侦听队列的大小。你的操作系统在这个队列大小上有它自己的限制。 Unix listen(2)系统调用的手册页应该有更多的细节。检查你的OS文档找出这个变量的最大值。试图设定back_log高于你的操作系统的限制将是无效的。<BR>connect_timeout<BR>mysqld服务器在用Bad handshake（糟糕的握手）应答前正在等待一个连接报文的秒数。<BR>delayed_insert_timeout<BR>一个INSERT DELAYED线程应该在终止之前等待INSERT语句的时间。<BR>delayed_insert_limit<BR>在插入delayed_insert_limit行后，INSERT DELAYED处理器将检查是否有任何SELECT语句未执行。如果这样，在继续前执行允许这些语句。<BR>delayed_queue_size<BR>应该为处理INSERT DELAYED分配多大一个队列(以行数)。如果排队满了，任何进行INSERT DELAYED的客户将等待直到队列又有空间了。<BR>flush_time<BR>如果这被设置为非零值，那么每flush_time秒所有表将被关闭(以释放资源和sync到磁盘)。<BR>interactive_timeout<BR>服务器在关上它前在一个交互连接上等待行动的秒数。一个交互的客户被定义为对mysql_real_connect()使用CLIENT_INTERACTIVE选项的客户。也可见wait_timeout。<BR>join_buffer_size<BR>用于全部联结(join)的缓冲区大小(不是用索引的联结)。缓冲区对2个表间的每个全部联结分配一次缓冲区，当增加索引不可能时，增加该值可得到一个更快的全部联结。（通常得到快速联结的最佳方法是增加索引。）<BR>key_buffer_size<BR>索引块是缓冲的并且被所有的线程共享。key_buffer_size是用于索引块的缓冲区大小，增加它可得到更好处理的索引(对所有读和多重写)，到你能负担得起那样多。如果你使它太大，系统将开始换页并且真的变慢了。记住既然MySQL不缓存读取的数据，你将必须为OS文件系统缓存留下一些空间。为了在写入多个行时得到更多的速度，使用LOCK TABLES。见7.24LOCK TABLES/UNLOCK TABLES语法。<BR>long_query_time<BR>如果一个查询所用时间超过它(以秒计)，Slow_queries记数器将被增加。<BR>max_allowed_packet<BR>一个包的最大尺寸。消息缓冲区被初始化为net_buffer_length字节，但是可在需要时增加到max_allowed_packet个字节。缺省地，该值太小必能捕捉大的(可能错误)包。如果你正在使用大的BLOB列，你必须增加该值。它应该象你想要使用的最大BLOB的那么大。<BR>max_connections<BR>允许的同时客户的数量。增加该值增加mysqld要求的文件描述符的数量。见下面对文件描述符限制的注释。见18.2.4 Too many connections错误。<BR>max_connect_errors<BR>如果有多于该数量的从一台主机中断的连接，这台主机阻止进一步的连接。你可用FLUSH HOSTS命令疏通一台主机。<BR>max_delayed_threads<BR>不要启动多于的这个数字的线程来处理INSERT DELAYED语句。如果你试图在所有INSERT DELAYED线程在用后向一张新表插入数据，行将被插入，就像DELAYED属性没被指定那样。<BR>max_join_size<BR>可能将要读入多于max_join_size个记录的联结将返回一个错误。如果你的用户想要执行没有一个WHERE子句、花很长时间并且返回百万行的联结，设置它。<BR>max_sort_length<BR>在排序BLOB或TEXT值时使用的字节数(每个值仅头max_sort_length个字节被使用；其余的被忽略)。<BR>max_tmp_tables<BR>（该选择目前还不做任何事情)。一个客户能同时保持打开的临时表的最大数量。<BR>net_buffer_length<BR>通信缓冲区在查询之间被重置到该大小。通常这不应该被改变，但是如果你有很少的内存，你能将它设置为查询期望的大小。（即，客户发出的SQL语句期望的长度。如果语句超过这个长度，缓冲区自动地被扩大，直到max_allowed_packet个字节。）<BR>record_buffer<BR>每个进行一个顺序扫描的线程为其扫描的每张表分配这个大小的一个缓冲区。如果你做很多顺序扫描，你可能想要增加该值。<BR>sort_buffer<BR>每个需要进行排序的线程分配该大小的一个缓冲区。增加这值加速ORDER BY或GROUP BY操作。见18.5 MySQL在哪儿存储临时文件。<BR>table_cache<BR>为所有线程打开表的数量。增加该值能增加mysqld要求的文件描述符的数量。MySQL对每个唯一打开的表需要2个文件描述符，见下面对文件描述符限制的注释。对于表缓存如何工作的信息，见10.2.4 MySQL怎样打开和关闭表。<BR>tmp_table_size<BR>如果一张临时表超出该大小，MySQL产生一个The table tbl_name is full形式的错误，如果你做很多高级GROUP BY查询，增加tmp_table_size值。<BR>thread_stack<BR>每个线程的栈大小。由crash-me测试检测到的许多限制依赖于该值。缺省队一般的操作是足够大了。见10.8 使用你自己的基准。<BR>wait_timeout<BR>服务器在关闭它之前在一个连接上等待行动的秒数。也可见interactive_timeout。<BR>MySQL使用是很具伸缩性的算法，因此你通常能用很少的内存运行或给MySQL更多的被存以得到更好的性能。<BR><BR>如果你有很多内存和很多表并且有一个中等数量的客户，想要最大的性能，你应该一些象这样的东西：<BR><BR>shell&gt; safe_mysqld -O key_buffer=16M -O table_cache=128<BR>-O sort_buffer=4M -O record_buffer=1M &amp;<BR><BR>如果你有较少的内存和大量的连接，使用这样一些东西：<BR>shell&gt; safe_mysqld -O key_buffer=512k -O sort_buffer=100k<BR>-O record_buffer=100k &amp;<BR><BR>或甚至：<BR>shell&gt; safe_mysqld -O key_buffer=512k -O sort_buffer=16k<BR>-O table_cache=32 -O record_buffer=8k -O net_buffer=1K &amp;<BR><BR>如果有很多连接，“交换问题”可能发生，除非mysqld已经被配置每个连接使用很少的内存。当然如果你对所有连接有足够的内存，mysqld执行得更好。<BR><BR>注意，如果你改变mysqld的一个选项，它实际上只对服务器的那个例子保持。<BR><BR>为了明白一个参数变化的效果，这样做：<BR><BR>shell&gt; mysqld -O key_buffer=32m --help<BR><BR>保证--help选项是最后一个；否则，命令行上在它之后列出的任何选项的效果将不在反映在输出中。<BR><BR>10.2.4 MySQL怎样打开和关闭数据库表<BR>table_cache, max_connections和max_tmp_tables影响服务器保持打开的文件的最大数量。如果你增加这些值的一个或两个，你可以遇到你的操作系统每个进程打开文件描述符的数量上强加的限制。然而，你可以能在许多系统上增加该限制。请教你的OS文档找出如何做这些，因为改变限制的方法各系统有很大的不同。<BR><BR>table_cache与max_connections有关。例如，对于200个打开的连接，你应该让一张表的缓冲至少有200 * n，这里n是一个联结(join)中表的最大数量。<BR><BR>打开表的缓存可以增加到一个table_cache的最大值（缺省为64；这可以用mysqld的-O table_cache=#选项来改变）。一个表绝对不被关闭，除非当缓存满了并且另外一个线程试图打开一个表时或如果你使用mysqladmin refresh或mysqladmin flush-tables。<BR><BR>当表缓存满时，服务器使用下列过程找到一个缓存入口来使用：<BR><BR>不是当前使用的表被释放，以最近最少使用（LRU）顺序。<BR>如果缓存满了并且没有表可以释放，但是一个新表需要打开，缓存必须临时被扩大。<BR>如果缓存处于一个临时扩大状态并且一个表从在用变为不在用状态，它被关闭并从缓存中释放。<BR>对每个并发存取打开一个表。这意味着，如果你让2个线程存取同一个表或在同一个查询中存取表两次(用AS)，表需要被打开两次。任何表的第一次打开占2个文件描述符；表的每一次额外使用仅占一个文件描述符。对于第一次打开的额外描述符用于索引文件；这个描述符在所有线程之间共享。<BR><BR>10.2.5 在同一个数据库中创建大量数据库表的缺点<BR>如果你在一个目录中有许多文件，打开、关闭和创建操作将会很慢。如果你执行在许多不同表上的SELECT语句，当表缓存满时，将有一点开销，因为对每个必须打开的表，另外一个必须被关闭。你可以通过使表缓冲更大些来减少这个开销。<BR><BR>10.2.6 为什么有这么多打开的表？<BR>当你运行mysqladmin status时，你将看见象这样的一些东西：<BR><BR>Uptime: 426 Running threads: 1 Questions: 11082 Reloads: 1 Open tables: 12<BR><BR>如果你仅有6个表，这可能有点令人困惑。<BR><BR>MySQL是多线程的，因此它可以同时在同一个表上有许多询问。为了是2个线程在同一个文件上有不同状态的问题减到最小，表由每个并发进程独立地打开。这为数据文件消耗一些内存和一个额外的文件描述符。索引文件描述符在所有线程之间共享。<BR><BR>10.2.7 MySQL怎样使用内存<BR>下表指出mysqld服务器使用存储器的一些方式。在应用的地方，给出与存储器使用相关的服务器变量的名字。<BR><BR>关键字缓冲区(变量key_buffer_size)由所有线程分享；当需要时，分配服务器使用的其他缓冲区。见10.2.3 调节服务器参数。<BR>每个连接使用一些线程特定的空间；一个栈(缺省64K，变量thread_stack)、一个连接缓冲区(变量net_buffer_length)和一个结果缓冲区(变量net_buffer_length)。当需要时，连接缓冲区和结果缓冲区动态地被扩大到max_allowed_packet。当一个查询正在运行当前查询的一个拷贝时，也分配字符串。<BR>所有线程共享同一基存储器。<BR>目前还没有什么是内存映射的(除了压缩表，但是那是另外一个的故事)。这是因为4GB的32位存储器空间对最大的数据库来所不是足够大的。当一个64位寻址空间的系统变得更普遍时，我们可以为内存映射增加全面的支持。<BR>每个做顺序扫描的请求分配一个读缓冲区(变量record_buffer)。<BR>所有联结均用一遍完成并且大多数联结可以甚至不用一张临时表来完成。最临时的表是基于内存的(HEAP)表。有较大记录长度(以所有列的长度之和计算)的临时表或包含BLOB列的表在磁盘上存储。在MySQL版本3.23.2前一个问题是如果一张HEAP表超过tmp_table_size的大小，你得到错误The table tbl_name is full。在更新的版本中，这通过必要时自动将在内存的(HEAP)表转变为一个基于磁盘(MyISAM)的表来处理。为了解决这个问题，你可以通过设置mysqld的tmp_table_size选项，或通过在客户程序中设置SQL的SQL_BIG_TABLES选项增加临时表的大小。见7.25 SET OPTION句法。在MySQL 3.20中，临时表的最大尺寸是record_buffer*16，因此如果你正在使用这个版本，你必须增加record_buffer值。你也可以使用--big-tables选项启动mysqld以总将临时表存储在磁盘上，然而，这将影响许多复杂查询的速度。<BR>大多数做排序的请求分配一个排序缓冲区和一个或二个临时文件。见18.5 MySQL在哪儿存储临时文件。<BR>几乎所有的语法分析和计算都在一家本地存储器中完成。对小项目没有内存开销并且一般的较慢存储器分配和释放被避免。内存仅为出乎意料的大字符串分配(这用malloc()和free()完成)。<BR>每个索引文件只被打开一次，并且数据文件为每个并发运行的线程打开一次。对每个并发线程，分配一个表结构、对每列的列结构和大小为3 * n的一个缓冲区(这里n是最大的行长度，不算BLOB列)。一个BLOB使用5 ～ 8个字节加上BLOB数据。<BR>对每个有BLOB列的表，一个缓冲区动态地被扩大以便读入更大的BLOB值。如果你扫描一个表，分配与最大BLOB值一样大的一个缓冲区。<BR>对所有在用的表的表处理器被保存在一个缓存中并且作为一个FIFO管理。通常缓存有64个入口。如果一个表同时被2个运行的线程使用，缓存为此包含2个入口。见10.2.4 MySQL如何打开和关闭数据库表。<BR>一个mysqladmin flush-tables命令关闭所有不在用的表并在当前执行的线程结束时，标记所有在用的表准备被关闭。这将有效地释放大多数在用的内存。<BR>ps和其他系统状态程序可以报导mysqld使用很多内存。这可以是在不同的内存地址上的线程栈造成的。例如，Solaris版本的ps将栈间未用的内存算作已用的内存。你可以通过用swap -s检查可用交换区来验证它。我们用商业内存漏洞探查器测试了mysqld，因此应该有没有内存漏洞。<BR><BR>10.2.8 MySQL怎样锁定数据库表<BR>MySQL中所有锁定不会是死锁的。这通过总是在一个查询前立即请求所有必要的锁定并且总是以同样的顺序锁定表来管理。<BR><BR>对WRITE，MySQL使用的锁定方法原理如下：<BR><BR>如果在表上没有锁，放一个锁在它上面。<BR>否则，把锁定请求放在写锁定队列中。<BR>对READ，MySQL使用的锁定方法原理如下：<BR><BR>如果在表上没有写锁定，把一个读锁定放在它上面。<BR>否则，把锁请求放在读锁定队列中。<BR>当一个锁定被释放时，锁定可被写锁定队列中的线程得到，然后是读锁定队列中的线程。<BR><BR>这意味着，如果你在一个表上有许多更改，SELECT语句将等待直到有没有更多的更改。<BR><BR>为了解决在一个表中进行很多INSERT和SELECT操作的情况，你可在一张临时表中插入行并且偶尔用来自临时表的记录更新真正的表。<BR><BR>这可用下列代码做到：<BR><BR>mysql&gt; LOCK TABLES real_table WRITE, insert_table WRITE;<BR>mysql&gt; insert into real_table select * from insert_table;<BR>mysql&gt; delete from insert_table;<BR>mysql&gt; UNLOCK TABLES;<BR><BR>如果你在一些特定的情况字下区分检索的优先次序，你可以使用LOW_PRIORITY选项的INSERT。见7.14 INSERT句法。<BR><BR>你也能改变在“mysys/thr_lock.c”中的锁代码以使用一个单个队列。在这种情况下，写锁定和读锁定将有同样优先级，它可能帮助一些应用程序。<BR><BR>10.2.9 数据库表级锁定的问题<BR>MySQL的表锁定代码是不会死锁的。<BR><BR>MySQL使用表级锁定(而不是行级锁定或列级锁定)以达到很高的锁定速度。对于大表，表级锁定对大多数应用程序来说比行级锁定好一些，但是当然有一些缺陷。<BR><BR>在MySQL3.23.7和更高版本中，一个人能把行插入到MyISAM表同时其他线程正在读该表。注意，目前只有在表中内有删除的行时才工作。<BR><BR>表级锁定使很多线程能够同时读一个表，但是如果一个线程想要写一个表，它必须首先得到独占存取权。在更改期间，所有其他想要存取该特定表的线程将等到更改就绪。<BR><BR>因为数据库的更改通常被视为比SELECT更重要，更新一个表的所有语句比从一个表中检索信息的语句有更高的优先级。这应该保证更改不被“饿死”，因为一个人针对一个特定表会发出很多繁重的查询。<BR><BR>从MySQL 3.23.7开始，一个人可以能使用max_write_lock_count变量强制MySQL在一个表上一个特定数量的插入后发出一个SELECT。<BR><BR>对此一个主要的问题如下：<BR><BR>一个客户发出一个花很长时间运行的SELECT。<BR>然后其他客户在一个使用的表上发出一个UPDATE；这个客户将等待直到SELECT完成。<BR>另一个客户在同一个表上发出另一个SELECT语句；因为UPDATE比SELECT有更高的优先级，该SELECT将等待UPDATE的完成。它也将等待第一个SELECT完成！<BR>对这个问题的一些可能的解决方案是：<BR><BR>试着使SELECT语句运行得更快；你可能必须创建一些摘要(summary)表做到这点。<BR>用--low-priority-updates启动mysqld。这将给所有更新(修改)一个表的语句以比SELECT语句低的优先级。在这种情况下，在先前情形的最后的SELECT语句将在INSERT语句前执行。<BR>你可以用LOW_PRIORITY属性给与一个特定的INSERT、UPDATE或DELETE语句较低优先级。<BR>为max_write_lock_count指定一个低值来启动mysqld使得在一定数量的WRITE锁定后给出READ锁定。<BR>通过使用SQL命令：SET SQL_LOW_PRIORITY_UPDATES=1，你可从一个特定线程指定所有的更改应该由用低优先级完成。见7.25 SET OPTION句法。<BR>你可以用HIGH_PRIORITY属性指明一个特定SELECT是很重要的。见7.12 SELECT句法。<BR>如果你有关于INSERT结合SELECT的问题，切换到使用新的MyISAM表，因为它们支持并发的SELECT和INSERT。<BR>如果你主要混合INSERT和SELECT语句，DELAYED属性的INSERT将可能解决你的问题。见7.14 INSERT句法。<BR>如果你有关于SELECT和DELETE的问题，LIMIT选项的DELETE可以帮助你。见7.11 DELETE句法。<BR>10.3 使你的数据尽可能小<BR>最基本的优化之一是使你的数据(和索引)在磁盘上(并且在内存中)占据的空间尽可能小。这能给出巨大的改进，因为磁盘读入较快并且通常也用较少的主存储器。如果在更小的列上做索引，索引也占据较少的资源。<BR><BR>你能用下面的技术使表的性能更好并且使存储空间最小：<BR><BR>尽可能地使用最有效(最小)的类型。MySQL有很多节省磁盘空间和内存的专业化类型。<BR>如果可能使表更小，使用较小的整数类型。例如，MEDIUMINT经常比INT好一些。<BR>如果可能，声明列为NOT NULL。它使任何事情更快而且你为每列节省一位。注意如果在你的应用程序中你确实需要NULL，你应该毫无疑问使用它，只是避免缺省地在所有列上有它。<BR>如果你没有任何变长列(VARCHAR、TEXT或BLOB列)，使用固定尺寸的记录格式。这比较快但是不幸地可能会浪费一些空间。见10.6 选择一种表类型。<BR>每张桌子应该有尽可能短的主索引。这使一行的辨认容易而有效。<BR>对每个表，你必须决定使用哪种存储/索引方法。见9.4 MySQL表类型。也可参见10.6 选择一种表类型。<BR>只创建你确实需要的索引。索引对检索有好处但是当你需要快速存储东西时就变得糟糕。如果你主要通过搜索列的组合来存取一个表，以它们做一个索引。第一个索引部分应该是最常用的列。如果你总是使用许多列，你应该首先以更多的副本使用列以获得更好的列索引压缩。<BR>如果很可能一个索引在头几个字符上有唯一的前缀，仅仅索引该前缀比较好。MySQL支持在一个字符列的一部分上的索引。更短的索引更快，不仅因为他们占较少的磁盘空间而且因为他们将在索引缓存中给你更多的命中率并且因此有更少磁盘寻道。见10.2.3 调节服务器参数。<BR>在一些情形下，分割一个经常被扫描进2个表的表是有益的。特别是如果它是一个动态格式的表并且它可能使一个能用来扫描后找出相关行的较小静态格式的表。<BR>10.4 MySQL索引的使用<BR>索引被用来快速找出在一个列上用一特定值的行。没有索引，MySQL不得不首先以第一条记录开始并然后读完整个表直到它找出相关的行。表越大，花费时间越多。如果表对于查询的列有一个索引，MySQL能快速到达一个位置去搜寻到数据文件的中间，没有必要考虑所有数据。如果一个表有1000行，这比顺序读取至少快100倍。注意你需要存取几乎所有1000行，它较快的顺序读取，因为此时我们避免磁盘寻道。<BR><BR>所有的MySQL索引(PRIMARY、UNIQUE和INDEX)在B树中存储。字符串是自动地压缩前缀和结尾空间。见7.27 CREATE INDEX句法。<BR><BR>索引用于：<BR><BR>快速找出匹配一个WHERE子句的行。<BR>当执行联结时，从其他表检索行。<BR>对特定的索引列找出MAX()或MIN()值。<BR>如果排序或分组在一个可用键的最左面前缀上进行(例如，ORDER BY key_part_1,key_part_2)，排序或分组一个表。如果所有键值部分跟随DESC，键以倒序被读取。<BR>在一些情况中，一个查询能被优化来检索值，不用咨询数据文件。如果对某些表的所有使用的列是数字型的并且构成某些键的最左面前缀，为了更快，值可以从索引树被检索出来。<BR>假定你发出下列SELECT语句：<BR><BR>mysql&gt; SELECT * FROM tbl_name WHERE col1=val1 AND col2=val2;<BR><BR>如果一个多列索引存在于col1和col2上，适当的行可以直接被取出。如果分开的单行列索引存在于col1和col2上，优化器试图通过决定哪个索引将找到更少的行并来找出更具限制性的索引并且使用该索引取行。<BR><BR>如果表有一个多列索引，任何最左面的索引前缀能被优化器使用以找出行。例如，如果你有一个3行列索引(col1,col2,col3)，你已经索引了在(col1)、(col1,col2)和(col1,col2,col3)上的搜索能力。<BR><BR>如果列不构成索引的最左面前缀，MySQL不能使用一个部分的索引。假定你下面显示的SELECT语句：<BR><BR>mysql&gt; SELECT * FROM tbl_name WHERE col1=val1;<BR>mysql&gt; SELECT * FROM tbl_name WHERE col2=val2;<BR>mysql&gt; SELECT * FROM tbl_name WHERE col2=val2 AND col3=val3;<BR><BR>如果一个索引存在于(col1、col2、col3)上，只有上面显示的第一个查询使用索引。第二个和第三个查询确实包含索引的列，但是(col2)和(col2、col3)不是(col1、col2、col3)的最左面前缀。<BR><BR>如果LIKE参数是一个不以一个通配符字符起始的一个常数字符串，MySQL也为LIKE比较使用索引。例如，下列SELECT语句使用索引：<BR><BR>mysql&gt; select * from tbl_name where key_col LIKE "Patrick%";<BR>mysql&gt; select * from tbl_name where key_col LIKE "Pat%_ck%";<BR><BR>在第一条语句中，只考虑有"Patrick" &lt;= key_col &lt; "Patricl"的行。在第二条语句中，只考虑有"Pat" &lt;= key_col &lt; "Pau"的行。<BR><BR>下列SELECT语句将不使用索引：<BR><BR>mysql&gt; select * from tbl_name where key_col LIKE "%Patrick%";<BR>mysql&gt; select * from tbl_name where key_col LIKE other_col;<BR><BR>在第一条语句中，LIKE值以一个通配符字符开始。在第二条语句中，LIKE值不是一个常数。<BR><BR>如果 column_name 是一个索引，使用column_name IS NULL的搜索将使用索引。<BR><BR>MySQL通常使用找出最少数量的行的索引。一个索引被用于你与下列操作符作比较的列：=、&gt;、&gt;=、&lt;、&lt;=、BETWEEN和一个有一个非通配符前缀象'something%'的LIKE的列。<BR><BR>任何不跨越的在WHERE子句的所有AND层次的索引不用来优化询问。<BR><BR>下列WHERE子句使用索引：<BR><BR>... WHERE index_part1=1 AND index_part2=2<BR>... WHERE index=1 OR A=10 AND index=2 /* index = 1 OR index = 2 */<BR>... WHERE index_part1='hello' AND index_part_3=5<BR>/* optimized like "index_part1='hello'" */<BR><BR>这些WHERE子句不使用索引：<BR><BR>... WHERE index_part2=1 AND index_part3=2 /* index_part_1 is not used */<BR>... WHERE index=1 OR A=10 /* No index */<BR>... WHERE index_part1=1 OR index_part2=10 /* No index spans all rows */<BR><BR>10.5 存取或更新数据的查询速度<BR>首先，一件事情影响所有的询问。你有的许可系统设置越复杂，你得到更多的开销。<BR><BR>如果你不让任何GRANT语句执行，MySQL将稍微优化许可检查。因此如果你有很大量，值得花时间来避免授权，否则更多的许可检查有更大的开销。<BR><BR>如果你的问题是与一些明显的MySQL函数有关，你总能在MySQL客户中计算其时间：<BR><BR>mysql&gt; select benchmark(1000000,1+1);<BR>+------------------------+<BR>| benchmark(1000000,1+1) |<BR>+------------------------+<BR>| 0 |<BR>+------------------------+<BR>1 row in set (0.32 sec)<BR><BR>上面显示MySQL能在PentiumII 400MHz上以0.32秒执行1,000,000个+表达式。<BR><BR>所有MySQL函数应该被高度优化，但是以可能有一些例外并且benchmark(loop_count,expression)是找出是否你的查询有问题的一个极好工具。<BR><BR>10.5.1 估计查询性能<BR>在大多数情况下，你能通过计算磁盘寻道估计性能。对小的表，你通常能在1次磁盘寻道中找到行(因为这个索引可能被缓冲)。对更大的表，你能估计它(使用 B++ 树索引)，你将需要：log(row_count)/log(index_block_length/3*2/(index_length + data_pointer_length))+1次寻道找到行。<BR><BR>在MySQL中，索引块通常是1024个字节且数据指针通常是4个字节，这对一个有一个索引长度为3(中等整数)的 500,000 行的表给你：log(500,000)/log(1024/3*2/(3+4)) + 1= 4 次寻道。<BR><BR>象上面的索引将要求大约 500,000 * 7 * 3/2 = 5.2M，(假设索引缓冲区被充满到2/3(它是典型的))，你将可能在内存中有索引的大部分并且你将可能仅需要1-2调用从OS读数据来找出行。<BR><BR>然而对于写，你将需要 4 次寻道请求(如上)来找到在哪儿存放新索引并且通常需2次寻道更新这个索引并且写入行。<BR><BR>注意，上述不意味着你的应用程序将缓慢地以 N log N 退化！当表格变得更大时，只要一切被OS或SQL服务器缓冲，事情将仅仅或多或少地更慢。在数据变得太大不能被缓冲后，事情将开始变得更慢直到你的应用程序仅仅受磁盘寻道限制(它以N log N增加)。为了避免这个增加，索引缓冲随数据增加而增加。见10.2.3 调节服务器参数。<BR><BR>10.5.2 SELECT查询的速度<BR>总的来说，当你想要使一个较慢的SELECT ... WHERE更快，检查的第一件事情是你是否能增加一个索引。见10.4 MySQL 索引的使用。在不同表之间的所有引用通常应该用索引完成。你可以使用EXPLAIN来确定哪个索引用于一条SELECT语句。见7.22 EXPLAIN句法(得到关于一条SELECT的信息)。<BR><BR>一些一般的建议：<BR><BR>为了帮助MySQL更好地优化查询，在它已经装载了相关数据后，在一个表上运行myisamchk --analyze。这为每一个更新一个值，指出有相同值地平均行数（当然，对唯一索引，这总是1。）<BR>为了根据一个索引排序一个索引和数据，使用myisamchk --sort-index --sort-records=1（如果你想要在索引1上排序)。如果你有一个唯一索引，你想要根据该索引地次序读取所有的记录，这是使它更快的一个好方法。然而注意，这个排序没有被最佳地编写，并且对一个大表将花很长时间！<BR>10.5.3 MySQL怎样优化WHERE子句<BR>where优化被放在SELECT中，因为他们最主要在那里使用里，但是同样的优化被用于DELETE和UPDATE语句。<BR><BR>也要注意，本节是不完全的。MySQL确实作了许多优化而我们没有时间全部记录他们。<BR><BR>由MySQL实施的一些优化列在下面：<BR><BR>删除不必要的括号：<BR>((a AND B) AND c OR (((a AND B) AND (c AND d))))<BR>-&gt; (a AND b AND c) OR (a AND b AND c AND d)<BR><BR>常数调入：<BR>(a&lt;b AND b=c) AND a=5<BR>-&gt; b&gt;5 AND b=c AND a=5<BR><BR>删除常数条件(因常数调入所需)：<BR>(B&gt;=5 AND B=5) OR (B=6 AND 5=5) OR (B=7 AND 5=6)<BR>-&gt; B=5 OR B=6<BR><BR>索引使用的常数表达式仅计算一次。<BR>在一个单个表上的没有一个WHERE的COUNT(*)直接从表中检索信息。当仅使用一个表时，对任何NOT NULL表达式也这样做。<BR>无效常数表达式的早期检测。MySQL快速检测某些SELECT语句是不可能的并且不返回行。<BR>如果你不使用GROUP BY或分组函数(COUNT()、MIN()……)，HAVING与WHERE合并。<BR>为每个子联结(sub join)，构造一个更简单的WHERE以得到一个更快的WHERE计算并且也尽快跳过记录。<BR>所有常数的表在查询中的任何其他表前被首先读出。一个常数的表是：<BR>一个空表或一个有1行的表。<BR>与在一个UNIQUE索引、或一个PRIMARY KEY的WHERE子句一起使用的表，这里所有的索引部分使用一个常数表达式并且索引部分被定义为NOT NULL。<BR>所有下列的表用作常数表：<BR><BR>mysql&gt; SELECT * FROM t WHERE primary_key=1;<BR>mysql&gt; SELECT * FROM t1,t2<BR>WHERE t1.primary_key=1 AND t2.primary_key=t1.id;<BR><BR>对联结表的最好联结组合是通过尝试所有可能性来找到:(。如果所有在ORDER BY和GROUP BY的列来自同一个表，那么当廉洁时，该表首先被选中。<BR>如果有一个ORDER BY子句和一个不同的GROUP BY子句，或如果ORDER BY或GROUP BY包含不是来自联结队列中的第一个表的其他表的列，创建一个临时表。<BR>如果你使用SQL_SMALL_RESULT，MySQL将使用一个在内存中的表。<BR>因为DISTINCT被变换到在所有的列上的一个GROUP BY，DISTINCT与ORDER BY结合也将在许多情况下需要一张临时表。<BR>每个表的索引被查询并且使用跨越少于30% 的行的索引。如果这样的索引没能找到，使用一个快速的表扫描。<BR>在一些情况下，MySQL能从索引中读出行，甚至不咨询数据文件。如果索引使用的所有列是数字的，那么只有索引树被用来解答查询。<BR>在每个记录被输出前，那些不匹配HAVING子句的行被跳过。<BR>下面是一些很快的查询例子：<BR><BR>mysql&gt; SELECT COUNT(*) FROM tbl_name;<BR>mysql&gt; SELECT MIN(key_part1),MAX(key_part1) FROM tbl_name;<BR>mysql&gt; SELECT MAX(key_part2) FROM tbl_name<BR>WHERE key_part_1=constant;<BR>mysql&gt; SELECT ... FROM tbl_name<BR>ORDER BY key_part1,key_part2,... LIMIT 10;<BR>mysql&gt; SELECT ... FROM tbl_name<BR>ORDER BY key_part1 DESC,key_part2 DESC,... LIMIT 10;<BR><BR>下列查询仅使用索引树就可解决(假设索引列是数字的)：<BR><BR>mysql&gt; SELECT key_part1,key_part2 FROM tbl_name WHERE key_part1=val;<BR>mysql&gt; SELECT COUNT(*) FROM tbl_name<BR>WHERE key_part1=val1 AND key_part2=val2;<BR>mysql&gt; SELECT key_part2 FROM tbl_name GROUP BY key_part1;<BR><BR>下列查询使用索引以排序顺序检索，不用一次另外的排序：<BR><BR>mysql&gt; SELECT ... FROM tbl_name ORDER BY key_part1,key_part2,...<BR>mysql&gt; SELECT ... FROM tbl_name ORDER BY key_part1 DESC,key_part2 DESC,...<BR><BR>10.5.4 MySQL怎样优化LEFT JOIN<BR>在MySQL中，A LEFT JOIN B实现如下：<BR><BR>表B被设置为依赖于表A。<BR>表A被设置为依赖于所有用在LEFT JOIN条件的表(除B外)。<BR>所有LEFT JOIN条件被移到WHERE子句中。<BR>进行所有标准的联结优化，除了一个表总是在所有它依赖的表之后被读取。如果有一个循环依赖，MySQL将发出一个错误。<BR>进行所有标准的WHERE优化。<BR>如果在A中有一行匹配WHERE子句，但是在B中没有任何行匹配LEFT JOIN条件，那么在B中生成所有列设置为NULL的一行。<BR>如果你使用LEFT JOIN来找出在某些表中不存在的行并且在WHERE部分你有下列测试：column_name IS NULL，这里column_name 被声明为NOT NULL的列，那么MySQL在它已经找到了匹配LEFT JOIN条件的一行后，将停止在更多的行后寻找(对一特定的键组合)。<BR>10.5.5 MySQL怎样优化LIMIT<BR>在一些情况中，当你使用LIMIT #而不使用HAVING时，MySQL将以不同方式处理查询。<BR><BR>如果你用LIMIT只选择一些行，当MySQL一般比较喜欢做完整的表扫描时，它将在一些情况下使用索引。<BR>如果你使用LIMIT #与ORDER BY，MySQL一旦找到了第一个 # 行，将结束排序而不是排序整个表。<BR>当结合LIMIT #和DISTINCT时，MySQL一旦找到#个唯一的行，它将停止。<BR>在一些情况下，一个GROUP BY能通过顺序读取键(或在键上做排序)来解决，并然后计算摘要直到键值改变。在这种情况下，LIMIT #将不计算任何不必要的GROUP。<BR>只要MySQL已经发送了第一个#行到客户，它将放弃查询。<BR>LIMIT 0将总是快速返回一个空集合。这对检查查询并且得到结果列的列类型是有用的。<BR>临时表的大小使用LIMIT #计算需要多少空间来解决查询。<BR>10.5.6 INSERT查询的速度<BR>插入一个记录的时间由下列组成：<BR><BR>连接：(3)<BR>发送查询给服务器：(2)<BR>分析查询：(2)<BR>插入记录：（1 x 记录大小）<BR>插入索引：（1 x 索引）<BR>关闭：(1)<BR>这里的数字有点与总体时间成正比。这不考虑打开表的初始开销(它为每个并发运行的查询做一次)。<BR><BR>表的大小以N log N (B 树)的速度减慢索引的插入。<BR><BR>加快插入的一些方法：<BR><BR>如果你同时从同一客户插入很多行，使用多个值表的INSERT语句。这比使用分开INSERT语句快(在一些情况中几倍)。<BR>如果你从不同客户插入很多行，你能通过使用INSERT DELAYED语句得到更高的速度。见7.14 INSERT句法。<BR>注意，用MyISAM，如果在表中没有删除的行，能在SELECT:s正在运行的同时插入行。<BR>当从一个文本文件装载一个表时，使用LOAD DATA INFILE。这通常比使用很多INSERT语句快20倍。见7.16 LOAD DATA INFILE句法。<BR>当表有很多索引时，有可能多做些工作使得LOAD DATA INFILE更快些。使用下列过程：<BR>有选择地用CREATE TABLE创建表。例如使用mysql或Perl-DBI。<BR>执行FLUSH TABLES，或外壳命令mysqladmin flush-tables。<BR>使用myisamchk --keys-used=0 -rq /path/to/db/tbl_name。这将从表中删除所有索引的使用。<BR>用LOAD DATA INFILE把数据插入到表中，这将不更新任何索引，因此很快。<BR>如果你有myisampack并且想要压缩表，在它上面运行myisampack。见10.6.3 压缩表的特征。<BR>用myisamchk -r -q /path/to/db/tbl_name再创建索引。这将在将它写入磁盘前在内存中创建索引树，并且它更快，因为避免大量磁盘寻道。结果索引树也被完美地平衡。<BR>执行FLUSH TABLES，或外壳命令mysqladmin flush-tables。<BR>这个过程将被构造进在MySQL的某个未来版本的LOAD DATA INFILE。<BR><BR>你可以锁定你的表以加速插入。<BR>mysql&gt; LOCK TABLES a WRITE;<BR>mysql&gt; INSERT INTO a VALUES (1,23),(2,34),(4,33);<BR>mysql&gt; INSERT INTO a VALUES (8,26),(6,29);<BR>mysql&gt; UNLOCK TABLES;<BR><BR>主要的速度差别是索引缓冲区仅被清洗到磁盘上一次，在所有INSERT语句完成后。一般有与有不同的INSERT语句那样夺的索引缓冲区清洗。如果你能用一个单个语句插入所有的行，锁定就不需要。锁定也将降低多连接测试的整体时间，但是对某些线程最大等待时间将上升(因为他们等待锁)。例如：<BR><BR>thread 1 does 1000 inserts<BR>thread 2, 3, and 4 does 1 insert<BR>thread 5 does 1000 inserts<BR><BR>如果你不使用锁定，2、3和4将在1和5前完成。如果你使用锁定，2、3和4将可能不在1或5前完成，但是整体时间应该快大约40%。因为INSERT, UPDATE和DELETE操作在MySQL中是很快的，通过为多于大约5次连续不断地插入或更新一行的东西加锁，你将获得更好的整体性能。如果你做很多一行的插入，你可以做一个LOCK TABLES，偶尔随后做一个UNLOCK TABLES(大约每1000行)以允许另外的线程存取表。这仍然将导致获得好的性能。当然，LOAD DATA INFILE对装载数据仍然是更快的。<BR><BR>为了对LOAD DATA INFILE和INSERT得到一些更快的速度，扩大关键字缓冲区。见10.2.3 调节服务器参数。<BR><BR>10.5.7 UPDATE查询的速度<BR>更改查询被优化为有一个写开销的一个SELECT查询。写速度依赖于被更新数据大小和被更新索引的数量。<BR><BR>使更改更快的另一个方法是推迟更改并且然后一行一行地做很多更改。如果你锁定表，做一行一行地很多更改比一次做一个快。<BR><BR>注意，动态记录格式的更改一个较长总长的记录，可能切开记录。因此如果你经常这样做，时不时地OPTIMIZE TABLE是非常重要的。见7.9 OPTIMIZE TABLE句法。<BR><BR>10.5.8 DELETE查询的速度<BR>删除一个记录的时间精确地与索引数量成正比。为了更快速地删除记录，你可以增加索引缓存的大小。见10.2.3 调节服务器参数。<BR><BR>从一个表删除所有行比删除行的一大部分也要得多。<BR><BR><BR>10.6 选择一种表类型<BR>用MySQL，当前(版本 3.23.5)你能从一个速度观点在4可用表的格式之间选择。<BR><BR>静态MyISAM<BR>这种格式是最简单且最安全的格式，它也是在磁盘格式最快的。速度来自于数据能在磁盘上被找到的难易方式。当所定有一个索引和静态格式的东西时，它很简单，只是行长度乘以行数量。而且在扫描一张表时，用每次磁盘读取来读入常数个记录是很容易的。安全性来自于如果当写入一个静态MyISAM文件时，你的计算机崩溃，myisamchk能很容易指出每行在哪儿开始和结束，因此它通常能回收所有记录，除了部分被写入的那个。注意，在MySQL中，所有索引总能被重建。<BR>动态MyISAM<BR>这种格式有点复杂，因为每一行必须有一个头说明它有多长。当一个记录在更改时变长时，它也可以在多于一个位置上结束。你能使用OPTIMIZE table或myisamchk整理一张表。如果你在同一个表中有象某些VARCHAR或BLOB列那样存取/改变的静态数据，将动态列移入另外一个表以避免碎片可能是一个好主意。<BR>压缩MyISAM<BR>这是一个只读类型，用可选的myisampack工具生成。<BR>内存(HEAP 堆）<BR>这种表格式对小型/中型查找表十分有用。对拷贝/创建一个常用的查找表(用联结)到一个(也许临时)HEAP表有可能加快多个表联结。假定我们想要做下列联结，用同样数据可能要几倍时间。<BR>SELECT tab1.a, tab3.a FROM tab1, tab2, tab3<BR>WHERE tab1.a = tab2.a and tab2.a = tab3.a and tab2.c != 0;<BR><BR>为了加速它，我们可用tab2和tab3的联结创建一张临时表，因为用相同列( tab1.a )查找。这里是创建该表和结果选择的命令。<BR><BR>CREATE TEMPORARY TABLE test TYPE=HEAP<BR>SELECT<BR>tab2.a as a2, tab3.a as a3<BR>FROM<BR>tab2, tab3<BR>WHERE<BR>tab2.a = tab3.a and c = 0;<BR>SELECT tab1.a, test.a3 from tab1, test where tab1.a = test.a1;<BR>SELECT tab1.b, test.a3 from tab1, test where tab1.a = test.a1 and something;<BR><BR>10.6.1 静态(定长)表的特点<BR>这是缺省格式。它用在表不包含VARCHAR、BLOB或TEXT列时候。<BR>所有的CHAR、NUMERIC和DECIMAL列充填到列宽度。<BR>非常快。<BR>容易缓冲。<BR>容易在崩溃后重建，因为记录位于固定的位置。<BR>不必被重新组织(用myisamchk)，除非一个巨量的记录被删除并且你想要归还空闲磁盘空间给操作系统。<BR>通常比动态表需要更多的磁盘空间。<BR>10.6.2 动态表的特点<BR>如果表包含任何VARCHAR、BLOB或TEXT列，使用该格式。<BR>所有字符串列是动态的(除了那些长度不到4的列)。<BR>每个记录前置一个位图，对字符串列指出哪个列是空的('')，或对数字列哪个是零(这不同于包含NULL值的列)。如果字符串列在删除尾部空白后有零长度，或数字列有零值，它在位图中标记并且不保存到磁盘上。非空字符串存储为一个长度字节加字符串内容。<BR>通常比定长表占更多的磁盘空间。<BR>每个记录仅使用所需的空间。如果一个记录变得更大，它按需要被切开多段，这导致记录碎片。<BR>如果你与超过行长度的信息更新行，行将被分段。在这种情况中，你可能必须时时运行myisamchk -r以使性能更好。使用myisamchk -ei tbl_name做一些统计。<BR>在崩溃后不容易重建，因为一个记录可以是分很多段并且一个连接(碎片)可以丢失。<BR>对动态尺寸记录的期望行长度是：<BR>3<BR>+ (number of columns + 7) / 8<BR>+ (number of char columns)<BR>+ packed size of numeric columns<BR>+ length of strings<BR>+ (number of NULL columns + 7) / 8<BR><BR>对每个连接有6个字节的惩罚。无论何时更改引起记录的增大，一个动态记录被链接。每个新链接将至少是20个字节，因此下一增大将可能在同一链连中。如果不是，将有另外一个链接。你可以用myisamchk -ed检查有多少链接。所有的链接可以用 myisamchk -r 删除。<BR><BR>10.6.3 压缩表的特点<BR>一张用myisampack实用程序制作的只读表。所有具有MySQL扩展电子邮件支持的客户可以为其内部使用保留一个myisampack拷贝。<BR>解压缩代码存在于所有MySQL分发，以便甚至没有myisampack的客户能读取用myisampack压缩的表。<BR>占据很小的磁盘空间，使磁盘使用量减到最小。<BR>每个记录被单独压缩(很小的存取开销)。对一个记录的头是定长的(1-3 字节)，取决于表中最大的记录。每列以不同方式被压缩。一些压缩类型是：<BR>通常对每列有一张不同的哈夫曼表。<BR>后缀空白压缩。<BR>前缀空白压缩。<BR>用值0的数字使用1位存储。<BR>如果整数列的值有一个小范围，列使用最小的可能类型来存储。例如，如果所有的值在0到255的范围，一个BIGINT列(8个字节)可以作为一个TINYINT列(1字节)存储。<BR>如果列仅有可能值的一个小集合，列类型被变换到ENUM。<BR>列可以使用上面的压缩方法的组合。<BR>能处理定长或动态长度的记录，然而不能处理BLOB或TEXT列。<BR>能用myisamchk解压缩。<BR>MySQL能支持不同的索引类型，但是一般的类型是ISAM。这是一个B树索引并且你能粗略地为索引文件计算大小为(key_length+4)*0.67，在所有的键上的总和。（这是对最坏情况，当所有键以排序顺序被插入时。）<BR><BR>字符串索引是空白压缩的。如果第一个索引部分是一个字符串，它也将压缩前缀。如果字符串列有很多尾部空白或是一个总不能用到全长的VARCHAR列，空白压缩使索引文件更小。如果很多字符串有相同的前缀，前缀压缩是有帮助的。<BR><BR><BR>10.6.4 内存表的特点<BR>堆桌子仅存在于内存中，因此如果mysqld被关掉或崩溃，它们将丢失，但是因为它们是很快，不管怎样它们是有用的。<BR><BR>MySQL内部的HEAP表使用没有溢出区的100%动态哈希并且没有与删除有关的问题。<BR><BR>你只能通过使用在堆表中的一个索引的用等式存取东西(通常用=操作符)。<BR><BR>堆表的缺点是：<BR><BR>你要为你想要同时使用的所有堆表需要足够的额外内存。<BR>你不能在索引的一个部分上搜索。<BR>你不能顺序搜索下一个条目(即使用这个索引做一个ORDER BY)。<BR>MySQL也不能算出在2个值之间大概有多少行。这被优化器使用来决定使用哪个索引，但是在另一方面甚至不需要磁盘寻道。<BR>10.7 其他优化技巧<BR>对加快系统的未分类的建议是：<BR><BR>使用持久的连接数据库以避免连接开销。<BR>总是检查你的所有询问确实使用你已在表中创建了的索引。在MySQL中，你可以用EXPLAIN命令做到。见7.22 EXPLAIN句法(得到关于SELECT的信息)。<BR>尝试避免在被更改了很多的表上的复杂的SELECT查询。这避免与锁定表有关的问题。<BR>在一些情况下，使得基于来自其他表的列的信息引入一个“ 哈希”的列有意义。如果该列较短并且有合理的唯一值，它可以比在许多列上的一个大索引快些。在MySQL中，很容易使用这个额外列：SELECT * from table where hash='calculated hash on col1 and col2' and col_1='constant' and col_2='constant' and .. 。<BR>对于有很多更改的表，你应该试着避免所有VARCHAR或BLOB列。只要你使用单个VARCHAR或BLOB列，你将得到动态行长度。见9.4 MySQL表类型。<BR>只是因为行太大，分割一张表为不同的表一般没有什么用处。为了存取行，最大的性能命冲击是磁盘寻道以找到行的第一个字节。在找到数据后，大多数新型磁盘对大多数应用程序来说足够快，能读入整个行。它确实有必要分割的唯一情形是如果其动态行尺寸的表(见上述)能变为固定的行大小，或如果你很频繁地需要扫描表格而不需要大多数列。见9.4 MySQL表类型。<BR>如果你很经常地需要基于来自很多行的信息计算(如计数)，引入一个新表并实时更新计数器可能更好一些。类型的更改UPDATE table set count=count+1 where index_column=constant是很快的！当你使用象MySQL那样的只有表级锁定(多重读/单个写)的数据库时，这确实重要。这也将给出大多数数据库较好的性能，因为锁定管理器在这种情况下有较少的事情要做。 11111111111111111111111<BR>如果你需要从大的记录文件表中收集统计信息，使用总结性的表而不是扫描整个表。维护总结应该比尝试做“实时”统计要快些。当有变化而不是必须改变运行的应用时，从记录文件重新生成新的总结表(取决于业务决策)要快多了！<BR>如果可能，应该将报告分类为“实时”或“统计”，这里统计报告所需的数据仅仅基于从实际数据产生的总结表中产生。<BR>充分利用列有缺省值的事实。当被插入值不同于缺省值时，只是明确地插入值。这减少MySQL需要做的语法分析并且改进插入速度。<BR>在一些情况下，包装并存储数据到一个BLOB中是很方便的。在这种情况下，你必须在你的应用中增加额外的代码来打包/解包BLOB中的东西，但是这种方法可以在某些阶段节省很多存取。当你有不符合静态的表结构的数据时，这很实用。<BR>在一般情况下，你应该尝试以第三范式保存数据，但是如果你需要这些以获得更快的速度，你应该不用担心重复或创建总结表。<BR>存储过程或UDF(用户定义函数)可能是获得更好性能的一个好方法，然而如果你使用某些不支持它的数据库，在这种情况中，你应该总是有零一个方法(较慢的)做这些。<BR>你总是能通过在你的应用程序中缓冲查询/答案并尝试同时做很多插入/更新来获得一些好处。如果你的数据库支持锁定表(象MySQL和Oracle)，这应该有助于确保索引缓冲在所有更新后只清空一次。<BR>但你不知道何时写入你的数据时，使用INSERT /*! DELAYED */。这加快处理，因为很多记录可以用一次磁盘写入被写入。<BR>当你想要让你的选择显得更重要时，使用INSERT /*! LOW_PRIORITY */。<BR>使用SELECT /*! HIGH_PRIORITY */来取得塞入队列的选择，它是即使有人等待做一个写入也要完成的选择。<BR>使用多行INSERT语句来存储很多有一条SQL命令的行(许多SQL服务器支持它）。<BR>使用LOAD DATA INFILE装载较大数量的数据。这比一般的插入快并且当myisamchk集成在mysqld中时，甚至将更快。<BR>使用AUTO_INCREMENT列构成唯一值。<BR>当使用动态表格式时，偶尔使用OPTIMIZE TABLE以避免碎片。见7.9O PTIMIZE TABLE句法。<BR>可能时使用HEAP表以得到更快的速度。见9.4 MySQL表类型。<BR>当使用一个正常Web服务器设置时，图象应该作为文件存储。这仅在数据库中存储的一本文件的引用。这样做的主要原因是是一个正常的Web服务器在缓冲文件比数据库内容要好得多，因此如果你正在使用文件，较容易得到一个较快的系统。<BR>对经常存取的不重要数据(象有关对没有cookie用户最后显示标语的信息）使用内存表。<BR>在不同表中具有相同信息的列应该被声明为相同的并有相同的名字。在版本 3.23 前，你只能靠较慢的联结。尝试使名字简单化(在客户表中使用name而不是customer_name)。为了使你的名字能移植到其他SQL服务器，你应该使他们短于18 个字符。<BR>如果你需要确实很高的速度，你应该研究一下不同SQL服务器支持的数据存储的底层接口！例如直接存取MySQL MyISAM，比起使用SQL 接口，你能得到2-5倍的速度提升。然而为了能做到它，数据必须是在与应用程序性在同一台机器的服务器上，并且通常它只应该被一个进程存取(因为外部文件锁定确实很慢)。通过在MySQL服务器中引进底层MyISAM命令能消除以上问题(如果需要，这可能是获得更好性能的一个容易的方法)。借助精心设计的数据库接口，应该相当容易支持这类优化。<BR>在许多情况下，从一个数据库存取数据(使用一个实时连接)比存取一个文本文件快些，只是因为数据库比文本文件更紧凑(如果你使用数字数据)并且这将涉及更少的磁盘存取。你也节省代码，因为你不须分析你的文本文件来找出行和列的边界。<BR>你也能使用复制加速。见19.1 数据库复制。<BR>10.8 使用你自己的基准测试<BR>你决定应该测试你的应用程序和数据库，以发现瓶颈在哪儿。通过修正它(或通过用一个“哑模块”代替瓶颈)，你能容易确定下一个瓶颈(等等)。即使对你的应用程序来说，整体性能“足够好”，你至少应该对每个瓶颈做一个“计划”，如果某人“确实需要修正它”，如何解决它。<BR><BR>对于一些可移植的基准程序的例子，参见MySQL基准套件。见11 MySQL 基准套件。你能利用这个套件的任何程序并且为你的需要修改它。通过这样做，你能尝试不同的你的问题的解决方案并测试哪一个对你是最快的解决方案。<BR><BR>在系统负载繁重时发生一些问题是很普遍的，并且我们有很多与我们联系的客户，他们在生产系统中有一个(测试)系统并且有负载问题。到目前为止，被一种这些的情况是与基本设计有关的问题(表扫描在高负载时表现不好)或OS/库问题。如果系统已经不在生产系统中，它们大多数将很容易修正。<BR><BR>为了避免这样的问题，你应该把一些力气放在在可能最坏的负载下测试你的整个应用！<BR><BR>10.9 设计选择<BR>MySQL在分开的文件中存储行数据和索引数据。许多(几乎全部)其他数据库在同一个文件中混合行和索引数据。我们相信，MySQL的选择对非常广泛的现代系统的来说是较好的。<BR><BR>存储行数据的另一个方法是在一个分开的区域保存每列信息(例子是SDBM和Focus)。这将对每个存取多于一列的查询获得一个性能突破。因为在多于一列被存取时，这快速退化，我们相信这个模型对通用功能的数据库不是最好。<BR><BR>更常见的情形是索引和数据一起被存储(就象Oracle/Sybase)。在这种情况中，你将在索引的叶子页面上找到行信息。有这布局的好处是它在许多情况下(取决于这个索引被缓冲得怎样)节省一次磁盘读。有这布局的坏处是：<BR><BR>表扫描更慢，因为你必须读完索引以获得数据。<BR>你损失很多空间，因为你必须重复来自节点的索引(因为你不能在节点上存储行）<BR>删除将随时间变化恶化数据库表(因为节点中的索引在删除后通常不被更新)。<BR>你不能仅使用索引表为一个查询检索数据。<BR>索引数据很难缓冲。<BR>10.10 MySQL设计局限/折衷<BR>因为MySQL使用极快的表锁定(多次读/一次写)，留下的最大问题是在同一个表中的一个插入的稳定数据流与慢速选择的一个混合。<BR><BR>我们相信，在其他情况下，对大多数系统，异常快速的性能使它成为一个赢家。这种情形通常也可能通过表的多个副本来解决，但是它要花更多的力气和硬件。<BR><BR>对一些常见的应用环境，我们也在开发一些扩展功能以解决此问题。<BR><BR>10.11 可移植性<BR>因为所有SQL服务器实现了SQL的不同部分，要花功夫编写可移植的SQL应用程序。对很简单的选择/插入，它是很容易的，但是你需要越多，它越困难，而且如果你想要应用程序对很多数据库都快，它变得更难！<BR><BR>为了使一个复杂应用程序可移植，你需要选择它应该与之工作的很多SQL服务器。<BR><BR>当你能使用MySQL的crash-me 程序（http://www.mysql.com/crash-me-choose.htmy）来找出你能与之使用的数据库服务器的选择的函数、类型和限制。crash-me现在对任何可能的事情测试了很长时间，但是它仍然理解测试过的大约450件事情。<BR><BR>例如，如果你想要能使用Informix 或 DB2，你不应该有比18个字符更长的列名。<BR><BR>MySQL基准程序和crash-me是独立于数据库的。通过观察我们怎么处理它，你能得到一个感觉，你必须为编写你的独立于数据库的应用程序做什么。基准本身可在MySQL源代码分发的“sql-bench”目录下找到。他们用DBI数据库接口以Perl写成(它解决问题的存取部分)。<BR><BR>到http://www.mysql.com/benchmark.html看这个基准的结果。<BR><BR>正如你可在这些结果看见的那样，所有数据库都有一些弱点。这就是他们不同的设计折衷导致的不同行为。<BR><BR>如果你为数据库的独立性而努力，你需要获得每个SQL服务器瓶颈的良好感受。MySQL在检索和更新方面很快，但是在同一个表上混合读者/写者方面将有一个问题。在另一方面，当你试图存取你最近更新了的行时，Oracle有一个很大问题(直到他们被清空到磁盘上)。事务数据库总的来说在从记录文件表中生成总结表不是很好，因为在这种情况下，行级锁定几乎没用处。<BR><BR>为了使你的应用程序“确实独立于数据库”，你需要定义一个容易的可扩展的接口，用它你可操纵你的数据。因为C++在大多数系统上可以得到的，使用数据库的一个C++ 类接口是有意义的。<BR><BR>如果你使用一些某个数据库特定的功能(在MySQL中，象REPLACE命令)，你应该为SQL服务器编码一个方法以实现同样的功能 (但是慢些)。用MySQL，你能使用/*! */语法把MySQL特定的关键词加到查询中。在/**/中的代码将被大多数其他SQL服务器视为一篇注释(被忽略)。<BR><BR>如果高性能真的比准确性更重要，就像在一些web应用程序那样。一种可能性是创建一个应用层，缓冲所有的结果以给你更高的性能。通过只是让老的结果在短时间后‘过期’，你能保持缓存合理地刷新。这在极高负载的情况下是相当不错的，在此情况下，你能动态地增加缓存到更大并且设定较高的过期时限直到一切回到正常。<BR><BR>在这种情况下，创建信息的表应该包含缓存初始大小和表一般应该被刷新几次的信息。<BR><BR>10.12 我们已将MySQL用在何处？<BR>在MySQL起初开发期间，MySQL的功能适合我们的最大客户。他们为在瑞典的一些最大的零售商处理数据仓库。<BR><BR>我们从所有商店得到所有红利卡交易的每周总结并且我们被期望为所有店主提供有用的信息以帮助他们得出他们的广告战如何影响他们的顾客。<BR><BR>数据是相当巨量的(大约每月7百万宗交易总结)并且我们保存4-10年来的数据需要呈现给用户。我们每周顾客那里得到请求，他们想要“立刻”访问来自该数据的新报告。<BR><BR>我们通过每月将所有信息存储在压缩的“交易”表中来解决它。我们有一套简单的宏/脚本用来生成来自交易表的不同条件( 产品组，顾客id，商店...)的总结表。报告是由一个进行语法分析网页的小perl脚本动态生成的网页，在脚本中执行SQL语句并且插入结果。现在我们很想使用PHP或mod_perl，但是那时他们没有。<BR><BR>对图形数据，我们用C语言编写了一个简单的工具，它能基于SQL查询的结果(对结果的一些处理)产生赠品，这也从分析HTML文件的perl脚本中动态地执行。<BR><BR>在大多数情况下，一个新的报告通过简单地复制一个现有脚本并且修改其中的SQL查询来完成。在一些情况下，我们将需要把更多的字段加到一个现有的总结表中或产生一个新的，但是这也相当简单，因为我们在磁盘上保存所有交易表。（目前我们有至少50G的交易表和200G的其他顾客数据)。<BR><BR>我们也让我们的顾客直接用ODBC存取总结表以便高级用户能自己试验数据。<BR><BR>我们用非常中档的Sun Ultra sparcstation ( 2x200 Mz )来处理，没有任何问题。最近我们升级了服务器之一到一台2个CPU 400 Mz的Ultra sparc，并且我们现在计划处理产品级的交易，这将意味着数据增加10番。我们认为我们能通过只是为我们的系统增加更多的磁盘就能赶上它。<BR><BR>我们也在试验Intel-Linux以便能更便宜地得到更多的cpu动力。既然我们有二进制可移植的数据库格式(在3.32中引入)，我们将开始在应用程序的某些部分使用它。<BR><BR>我们最初的感觉是Linux在低到中等负载时执行的较好，但是你开始得到导致的高负载时，Solaris将表现更好，因为磁盘IO的极限，但是我们还没有关于这方面的任何结论。在与一些Linux核心开发者的讨论以后，这可能是 Linux 的副作用，它给批处理以太多的资源使得交互的性能变得很低。当大的批处理正在进行时，这使机器感觉很慢且无反应。希望这将在未来的Linux内核中解决。</FONT></P><img src ="http://www.blogjava.net/chenpengyi/aggbug/17324.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-29 10:49 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/29/17324.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Google搜索技巧2005版(Google Search Tips 2005)(转载)</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/21/16366.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Fri, 21 Oct 2005 14:39:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/21/16366.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/16366.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/21/16366.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/16366.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/16366.html</trackback:ping><description><![CDATA[<FONT size=2>1. 双引号可以用减号代替,比如搜索["like this"]与搜索[like-this]是一个效果<BR><BR>2. Google不会处理一些特殊的字符,比如[#](几年前还不行,现在可以了,比如搜索[c#]已经可以搜到相应的结果),但是还有一些字符它不认识,比如搜索[t.]、[t-]与[t^]的结果是一样的<BR><BR>3. Google充许一次搜索最多32个关键词<BR><BR>4. 在单词前加~符号可以搜索同义词，比如你想搜索[house]，同时也想找[home]，你就可以搜索[~house]<BR><BR>5. 如果想得到Google索引页面的总数，可以搜索[* *]<BR><BR>6. Google可以指定数字范围搜索。搜索[2001..2005]相当于搜索含有2001、2002直到2005的任意一个数的网页<BR><BR>7. 搜索[define:css]相当于搜索css的定义，这招对想学习知识的人很有效；也可以用[what is css]搜索；对中文来说，也可以用[什么是css]之类的<BR><BR>8. Google有一定的人工智能，可以识别一些简单的短语如[when was Einstein born?]或[einstein birthday]<BR><BR>9. 通过[link:]语法，可以寻找含有某个链接的网页，比如[link:blog.outer-court.com]将找到包括指向 blog.outer-court.com超级链接的网页（最新的Google Blog Search也支持这个语法），但是Google并不会给出所有的包含此链接的网页，因为它要保证pagerank算法不被反向工程（呵呵，可以参见那两个Google创始人关于pagerank的论文，可下载）<BR><BR>10. 如果在搜索的关键词的最后输入[why?]，就会在结果中出现链接到Google Answers的链接</FONT><A href="http://answers.google.com/" target=_blank><FONT size=2>http://answers.google.com</FONT></A><FONT size=2> ，在里面可以进行有偿提问<BR><BR>11. 现在出现了一种兴趣活动，叫做Google Hacking，其内容是使用Google搜索一些特定的关键词，以便找到有漏洞的、易被黑客攻击的站点。这个网站列出了这些关键词：Google Hacking Database( </FONT><A href="http://johnny.ihackstuff.com/index....ule=prodreviews" target=_blank><FONT size=2>http://johnny.ihackstuff.com/index....ule=prodreviews</FONT></A><FONT size=2> )<BR><BR>12. 在Google 中输入一组关键词时，默认是“与”搜索，就是搜索包含有所有关键词的网页。如果要“或”搜索，可以使用大写的[OR]或 [|]，使用时要与关键词之间留有空格。比如搜索关键词[Hamlet (pizza | coke)]，是让Google搜索页面中或页面链接描述中含有Hamlet，并含有pizza与coke两个关键词中任意一个的网页。<BR><BR>13. 并非所有的Google服务都支持相同的语法，比如在Google Group中支持 [insubject:test]之类的主题搜索。可以通过高级搜索来摸索这些关键词的用法：进入高级搜索之后设置搜索选项，然后观察关键字输入窗口中的关键字的变化<BR><BR>14. 有时候Google懂得一些自然语言，比如搜索关键词[goog], [weather new york, ny], [new york ny]或[war of the worlds]，此时Google会在搜索结果前显示出一个被业内称为“onebox”的结果，试试看吧！<BR><BR>15. 并非所有的Google都是相同的，它因国家版本（或是说语言版本）而异。在US版下，搜索[site:stormfront.org]会有成千上万的结果，而在德语版下，搜索[site:stormfront.org]的结果，嗯，自己看吧。Google的确与各国政府有内容审查协议，比如德国版，法国版（网页搜索），中国版Google新闻<BR><BR>16. 有时候Google会提示你搜索结果很烂，比如你搜索关键词[jew]试试，Google会告诉你它给出的搜索结果很烂，然后给你一个解释：</FONT><A href="http://www.google.com/explanation.html" target=_blank><FONT size=2>http://www.google.com/explanation.html</FONT></A><BR><BR><FONT size=2>17. 以前，搜索某些关键词如[work at Google] 时会看到Google给自己打的广告。可以去</FONT><A href="http://www.google.com/jobs/了解Google的工作" target=_blank><FONT size=2>http://www.google.com/jobs/了解Google的工作</FONT></A><BR><BR><FONT size=2>18. 对于一些“Googlebombed”（大概意思是指Google搜索的结果出问题了）的关键词，会有一个广告链接到：http: //googleblog.blogspot.com/2005/09/googlebombing-failure.html （中国大陆需要代理才能访问）。比如搜索[failure]，第一条是美国布什总统介绍<BR><BR>19. 虽然现在Google还没有支持自然语言，但这里有一段录像显示了支持自然语言的搜索引擎的使用效果：</FONT><A href="http://blog.outer-court.com/videos/googlebrain.wmv" target=_blank><FONT size=2>http://blog.outer-court.com/videos/googlebrain.wmv</FONT></A><BR><BR><FONT size=2>20. 有人说在Google中搜索[president of the internet]，其结第一条表明了president of the internet是谁，我也是这么认为的，而且你还可以使用这个logo支持本文作者：</FONT><A href="http://blog.outer-/" target=_blank><FONT size=2>http://blog.outer-</FONT></A><FONT size=2> court.com/files/president.gif<BR><BR>21. Google现在不再有“stop words”（被强制忽略的关键词），比如搜索 [to be or not to be], Google返回的结果中间还列有相关的完整短语搜索结果<BR><BR>22. 在Google 计算器（</FONT><A href="http://www.google.com/help/features.html#calculator" target=_blank><FONT size=2>http://www.google.com/help/features.html#calculator</FONT></A><FONT size=2> ）中有个彩蛋：输入[what is the answer to life, the universe and everything?]时，会返回42。（关键词翻译过来的意思是指“生命、宇宙和一切的答案”，这是一个著名科幻小说中的情节，详情参见http: //en.wikipedia.org/wiki/The_Answer_to_Life,_the_Universe, _and_Everything）。试试吧，哈哈<BR><BR>23. 你可以在搜索时使用通配符 </FONT>
<LI><FONT size=2>，这在搜索诗词时特别有效。比如你可以搜一下["love you twice as much * oh love * *"] 试试<BR><BR>24. 同样，你的关键词可以全部都是通配符，比如搜索["* * * * * * *"]<BR><BR>25. www.googl.com是在输错网址后的结果，也是个搜索网站，但搜索结果与Google完全不同。而且此网站也赚Google的钱，因为它使用Google AdSense<BR><BR>26. 如果你想把搜索结果限制在大学的网站之中，可以使用[site:.edu]关键词，比如[c-tutorial site:.edu]，这样可以只搜索以edu结尾的网站。你也可以使用Google Scholar来达到这个目的。也可以使用[site:.de]或[site:.it]来搜索某个特定国家的网站</FONT></LI><FONT size=2>
<P><BR>由于是转载自<A href="http://www.5iuu.com/">CALLCALL'S BLOG</A>，因此不做任何修改。如果作者有意见可以跟我联系，我立刻撤下。<BR></P></FONT><img src ="http://www.blogjava.net/chenpengyi/aggbug/16366.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-21 22:39 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/21/16366.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL的 连接/联结（Join）语法(原创！)</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/17/15747.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Mon, 17 Oct 2005 14:53:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/17/15747.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/15747.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/17/15747.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/15747.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/15747.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: MySQL的联结（Join）语法1．内联结、外联结、左联结、右联结的含义及区别： 在讲MySQL的Join语法前还是先回顾一下联结的语法，呵呵，其实连我自己都忘得差不多了，那就大家一起温习吧（如果内容有错误或有疑问，可以来信咨询：陈朋奕 chenpengyi#gmail.com），国内关于MySQL联结查询的资料十分少，相信大家在看了本文后会对MySQL联结语法有相当清晰的了解，也不会...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2005/10/17/15747.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/15747.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-17 22:53 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/17/15747.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>南开大学经济学院硕士生入学考试试题</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/13/15429.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 13 Oct 2005 09:01:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/13/15429.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/15429.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/13/15429.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/15429.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/15429.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: center" align=center><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">南开大学</SPAN></B><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋">1994</SPAN></B><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">年硕士入学考试</SPAN></B><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、解释“需求价格”和“供给价格”的概念，没有这两个概念均衡价格理论能否成立？它们在均衡价格理论中有何意义？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、在完全竞争的假定条件下，厂商理论是怎样说明市场的长期均衡机制的？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>3</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、什么是经济租金？它与生产者剩余有何关系？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>4</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、在“</SPAN><SPAN lang=EN-US>IS</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</SPAN><SPAN lang=EN-US>LM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”模型中，产品市场与货币市场相互影响的传导机制是什么？如何操纵</SPAN><SPAN lang=EN-US>LM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">曲线来改变双重均衡状态？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>5</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、为什么凯恩斯主义者认为“年平衡预算政策”是一种不可取的财政政策？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape id=_x0000_s1026 style="MARGIN-TOP: 15.6pt; Z-INDEX: 1; LEFT: 0px; MARGIN-LEFT: 243pt; WIDTH: 180.75pt; POSITION: absolute; HEIGHT: 144.75pt; TEXT-ALIGN: left; mso-wrap-edited: f" wrapcoords="-90 0 -90 21488 21600 21488 21600 0 -90 0" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:\DOCUME~1\ASUS\LOCALS~1\Temp\msohtml1\01\clip_image001.png"></v:imagedata><?xml:namespace prefix = w ns = "urn:schemas-microsoft-com:office:word" /><w:wrap type="tight"></w:wrap></v:shape><SPAN lang=EN-US>6</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、如图所示，当双重均衡点</SPAN><SPAN lang=EN-US>E</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">取位于外部均衡曲线</SPAN><SPAN lang=EN-US>EB</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的右边时，国际收支是有逆差还是有顺差？如果汇率可自由浮动，说明达到外部均衡的过程。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l3 level1 lfo1; tab-stops: list 21.0pt"><SPAN lang=EN-US style="mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">一、</SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">论述题<B>（每题</B></SPAN><B><SPAN lang=EN-US>20</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分，共</SPAN><SPAN lang=EN-US>40</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分）</SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、货币主义者和凯恩斯主义者关于“财政政策有效还是货币政策有效”的争论焦点在何处？为什么？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、简述一般均衡过程的条件和保证其实现的机制，你认为一般均衡理论能否概括市场经济运行的基本经济关系？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋"><o:p>&nbsp;</o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋"><o:p>&nbsp;</o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">南开大学</SPAN></B><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋">1995</SPAN></B><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">年硕士入学考试</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、举例说明，货物税由消费者和卖者各负担的程度取决于需求价格弹性和供给价格弹性的大小。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、怎样从消费行为来推导个人需求曲线？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>3</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、什么是福利三角形，它是怎样形成的？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>4</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、为什么说个人的劳动供给曲线会呈弓形，它是怎样推导出来的？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>5</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、以劳动这个生产要素为例，说明厂商在产品市场处于卖方垄断时和在劳动市场处于买方垄断时，对劳动的剥削。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l4 level1 lfo2; tab-stops: list 21.0pt"><B><SPAN lang=EN-US style="mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">一、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">论述题（共</SPAN><SPAN lang=EN-US>40</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分）</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l4 level2 lfo2; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">1、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">财政赤字是否必然会引起通货膨胀？为什么？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l4 level2 lfo2; tab-stops: list 39.0pt"><B><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">2、<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN></B><SPAN lang=EN-US>IS</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</SPAN><SPAN lang=EN-US>LM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模型中产品市场和货币市场相互影响的传导机制是什么？你认为它们在中国是否也同样起作用？为什么？</SPAN><B><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">南开大学</SPAN></B><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋">1996</SPAN></B><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">年硕士入学考</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">1、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如何根据“效用最大化”消费行为推导消费者个人的需求曲线？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">2、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用图示说明长期成本曲线与短期成本曲线的关系。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">3、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">简述以边际生产力为基础的收入分配理论。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">4、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">“</SPAN><SPAN lang=EN-US>GNP</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－折旧－间接税＝</SPAN><SPAN lang=EN-US>NI</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”与“有一美元收入就有一美元的最终产品”是否矛盾？为什么？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">5、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">简要说明浮动汇率制度下，国际收支与汇率的关系。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">6、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">什么是拉弗曲线？请简要加以解释。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo3; tab-stops: list 21.0pt"><B><SPAN lang=EN-US style="mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">二、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">计算题（</SPAN><SPAN lang=EN-US>20</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分）</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">1、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">某图书出版公司是在两个相互独立的市场上进行销售的垄断厂商，它在第一个市场的边际收益曲线为：</SPAN><SPAN lang=EN-US>MR1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>20</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</SPAN><SPAN lang=EN-US>2Q1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，在第二个市场的边际收益线为：</SPAN><SPAN lang=EN-US>MR2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>15</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</SPAN><SPAN lang=EN-US>3Q2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</SPAN><SPAN lang=EN-US>Q1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN lang=EN-US>Q2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分别为两个市场上的日销售量。如果一本书的边际成本为</SPAN><SPAN lang=EN-US>6</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">美元，该厂商在这两市场分别销售多少本书？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo3; tab-stops: list 39.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">2、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已知：</SPAN><SPAN lang=EN-US>C</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>200</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</SPAN><SPAN lang=EN-US>4/5DI</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">　</SPAN><SPAN lang=EN-US>NT</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝－</SPAN><SPAN lang=EN-US>225</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</SPAN><SPAN lang=EN-US>1/4NI</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 39pt"><SPAN lang=EN-US>I</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>100</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">　</SPAN><SPAN lang=EN-US>GP</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>200</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 78pt; TEXT-INDENT: -36pt; mso-list: l1 level3 lfo3; tab-stops: list 78.0pt"><SPAN lang=EN-US style="mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">（1）<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">求均衡国民收入。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 78pt; TEXT-INDENT: -36pt; mso-list: l1 level3 lfo3; tab-stops: list 78.0pt"><SPAN lang=EN-US style="mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">（2）<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如果充分就业的均衡国民收入为</SPAN><SPAN lang=EN-US>1950</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，怎样才能达到充分就业状态？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo3; tab-stops: list 21.0pt"><B><SPAN lang=EN-US style="mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">三、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">论述题（</SPAN><SPAN lang=EN-US>20</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分）</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以下两题中，参加全国统考的答第一题；参加单考的答第二题。</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、货币主义者和凯恩斯主义者之间，关于问题的争论焦点集中在货币流通速度上？为什么？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、在完全竞争条件下，厂商的长期均衡和市场均衡是怎样联系在一起的。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: center" align=center><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">南开大学</SPAN></B><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋">1997</SPAN></B><B><SPAN style="FONT-FAMILY: 华文中宋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">年硕士入学考试</SPAN></B><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: center" align=center><B><SPAN lang=EN-US style="mso-fareast-font-family: 华文中宋"><o:p>&nbsp;</o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、如图所示：消费者效用最大化的均衡条件是什么？如果消费者的消费点在</SPAN><SPAN lang=EN-US>A</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">点，用公式表示他处于什么状态，他将怎样调整才能达到效用最大化？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、以边际生产力为基础的收入分配理论是怎样在收入分配公式和生产函数之间建立联系的。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><v:shape id=_x0000_s1027 style="MARGIN-TOP: 15.6pt; Z-INDEX: 2; LEFT: 0px; MARGIN-LEFT: 243pt; WIDTH: 158.25pt; POSITION: absolute; HEIGHT: 145.5pt; TEXT-ALIGN: left" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:\DOCUME~1\ASUS\LOCALS~1\Temp\msohtml1\01\clip_image003.png"></v:imagedata><w:wrap type="square"></w:wrap></v:shape><SPAN lang=EN-US>3</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、简要说明银行存款（或货币）创造过程中有那些漏出量会使分行的乘数作用减弱。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>4</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、请用图示简要推导出外部均衡曲线（</SPAN><SPAN lang=EN-US>EB</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">曲线）</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l2 level1 lfo4; tab-stops: list 21.0pt"><B><SPAN lang=EN-US style="mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">一、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">计算题（</SPAN><SPAN lang=EN-US>20</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分。每题</SPAN><SPAN lang=EN-US>10</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分；马列答</SPAN><SPAN lang=EN-US>3</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN lang=EN-US>4</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">题，其它专业答</SPAN><SPAN lang=EN-US>1</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN lang=EN-US>2</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">题）</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、已知某一垄断厂商的边际成本曲线为一直线：</SPAN><SPAN lang=EN-US>MC</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>60</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</SPAN><SPAN lang=EN-US>2Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">其中，</SPAN><SPAN lang=EN-US>MC</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为边际成本，</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为产量；厂商面对的需求曲线为：</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>100</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">；其中</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为产品价格。求利润最大化的产量</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和价格</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、柯布－道格拉斯生产函数为</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>A L<SUP>α</SUP>K<SUP>β</SUP></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">；式中，</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为产出量，</SPAN><SPAN lang=EN-US>L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为劳动投入量，</SPAN><SPAN lang=EN-US>K</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为资本投入量，</SPAN><SPAN lang=EN-US>A</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</SPAN><SPAN lang=EN-US>α</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">　，</SPAN><SPAN lang=EN-US>β</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为该函数中既定的参数。求</SPAN><SPAN lang=EN-US>MRTS<SUB>L , K</SUB></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">；</SPAN><SPAN lang=EN-US>MP<SUB>L</SUB></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">；</SPAN><SPAN lang=EN-US>MP<SUB>K</SUB></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>3</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、已知某商品的需求函数为：</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>70</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</SPAN><SPAN lang=EN-US>2Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">　该商品的供给函数为：</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＝</SPAN><SPAN lang=EN-US>10</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</SPAN><SPAN lang=EN-US>2Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">　其中，</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为价格，</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为产量。求：均衡价格</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和均衡产量</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>4</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、画出第三题中的需求函数图像和供给函数图像；并标出均衡点</SPAN><SPAN lang=EN-US>E</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的位置，以及均衡产量</SPAN><SPAN lang=EN-US>Q</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN lang=EN-US>P</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">三、论述题（</SPAN><SPAN lang=EN-US>40</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分，每题</SPAN><SPAN lang=EN-US>20</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">分）</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo5; tab-stops: list 18.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore">1、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">比较完全竞争、完全垄断、垄断竞争这三者在市场结构，均衡条件等方面的异同；并对它们作为不同产品分配方式的利弊得失做出分析。</SPAN></P><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">财政赤字产生的原因有哪些？为什么要将自动的财政政策与相机抉择的财政政策加以区分。你主为要使这种区分变得具有可操作性，尚需具备哪些条</SPAN><img src ="http://www.blogjava.net/chenpengyi/aggbug/15429.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-13 17:01 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/13/15429.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Google在旧金山提供覆盖全城的免费WiFi无线局域网接入服务！</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/06/14860.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 06 Oct 2005 03:38:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/06/14860.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14860.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/06/14860.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14860.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14860.html</trackback:ping><description><![CDATA[<FONT size=2>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; Google又要做好事了，这次他要在旧金山为该市市民提供可覆盖全城的无线局域网服务，俺确实有点不理解Google了，又是免费，而且还是一项巨大的工程？Google的发言人说仅仅会通过为用户提供Google的搜索服务和部分广告来维持自己的服务，随便估算都知道单单通过广告是根本不能维持这个服务的，如果可以的话，AT&amp;T那些公司还收费那么高干什么呢？而且这样做很明显的触犯了他们的利益，就像Skype的skypeOut在中国触犯中国电信的利益一样，这些归属权力机构的垄断部门怎么能让别人去侵害自己的既得利益呢？（说点题外话，这段时间跟一个在华为的师兄聊天，探讨人生和社会，然后既说到他现在的工作，每天累死累活的，加班是绝对的，回家了还得自己赶着紧学习新的技术，IT行业技术更新太快了……而很多电信工作人员基本什么都不懂，却领着高工资、趾高气扬的指挥他做这个做那个的，他就想不通了，到底自己什么不如人家，论文凭、论能力都不比人家低，为什么这么累拿到的钱还不如人家每天看报纸拿的多？难道Relationship真的那么重要？题外话了，不说了）。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;果然，Google将面临电信运营商SBC通信公司和Verizon通信以及有线电缆运营商Comcast的诉讼，同时这些公司公开或者私下谴责旧金山市政府的这一项目，称这是一个并不明智的行为，因为低成本互联网接入业务已经相当普及。而且Google想要做这种事情还需要立法机构的批准，旧金山政府官员也认为这实现起来不容易，因为现有的电信运营商在立法机构中占有了相当的席位……，靠，又是代表资本家的官僚，垃圾（我最喜欢骂出口的台词，^_^）。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;而作为旧金山的市政府是很支持这个工程的，因为他们认为造成穷人和富人之间的差距的原因之一就是获取信息量的多与少，穷人很难得到自己想要的致富的信息，而富人却很容易，因此信息造成了这个时代的穷与富。无论现有的电信运营商如何批评或指责，他们仍然坚持通过普及宽带接入来缩小穷人和富人之间在信息时代的数字差距。同时该市市长表示，民众有获得信息这一最基本的公民权利。的确市很开明的政府，能真正为了市民着想，而不像某些市的政府，花大价钱只为做个豆腐渣的形象工程。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;虽然这个计划实现起来不容易，但相信以Google的能力，假以时日，应该可以实现，那时Google以前收购的那些地下黑光缆就要发挥作用了。Google似乎要涉足IT的每一个行业，但相信他不是为了去垄断才进入这个行业的，而是奉行他一直的理念：Don't<BR>Be Evil！所以这样做其实更多是为了给自己争取足够的实力去对抗Evil的Monopoly们。期待Google能早日实现这个愿望。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;顺便提提，Google要和Sun合作了，听到这个消息确实高兴，首先是因为自己喜欢Google（可惜整天被某个电信屏蔽，经常连不上，太Evil了），同时也是Java程序员，这两个公司的合作确实是好事。之前看了一篇<A class=headermaintitle id=Header1_HeaderTitle href="http://blog.donews.com/yimao/">易轩集</A>的文章，说如果Google和Sun的合作是为了Google Office，那么<A class=headermaintitle id=Header1_HeaderTitle href="http://blog.donews.com/yimao/">易轩集</A>的版主是绝对不会去用的。这里我有不同意见，不知道大家使用过Open Office没有？其实用过的也应该知道，Sun公司的软件确实是不错的，我敢说Solaris比Linux和Windows XX都强，只是因为Sun的硬件不是那么强，但软件又是搭配硬件销售的，所以才……因此OpenOffice是不会比微软的Office差多少，至少我用过，而且在很多方面微软的Office还是抄袭他的功能，更多是因为平台的问题导致了他的不流行，如果现在就放弃这个项目，那真的就是一种遗憾了。难道就看着微软垄断了？强强联手去打破这种垄断不是更好吗？虽然不知道是否要在OpenOffice项目上合作，但相信他们的实力，新版的Wps我支持，所以Google Office我一定支持（最好是更Java有关的吧，呵呵）！</FONT><img src ="http://www.blogjava.net/chenpengyi/aggbug/14860.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-06 11:38 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/06/14860.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>QQ携带病毒事件后续</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/06/14856.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 06 Oct 2005 02:41:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/06/14856.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14856.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/06/14856.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14856.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14856.html</trackback:ping><description><![CDATA[<P><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关于QQ携带病毒的事情，和emu兄有了写讨论，发现自己也确实不好掺和在里面，在这里也要感谢emu老兄。而QQ是否带毒，我也不发表任何评论了，只是摘抄一些最新的评论让关注的人知道些信息吧。<BR><BR>以下引自Donews：<BR>QQ病毒事件全程追踪调查!---腾讯公司关于QQ病毒事件的历史回顾:</FONT></P>
<P><FONT size=2>起因:　QQ最近在其官方网站</FONT><A href="http://www.QQ.COM"><FONT size=2>WWW.QQ.COM</FONT></A><FONT size=2>上推出了QQ2005 beta3版，吸引了很多用户试用。这本来是件好事情，却爆出了这个版本的QQ可能含有病毒的消息。（延伸阅读：网友怒曝：QQ 2005 Beta3版带会自动改名的病毒） </FONT></P>
<P><FONT size=2>　　为了证实这个消息的真实性，我赶紧到</FONT><A href="http://www.qq.com"><FONT size=2>www.qq.com</FONT></A><FONT size=2>上下载了一个QQ2005 beta3，进行了详细而认真的测试。 </FONT></P>
<P><FONT size=2>　　以下是测试结果： </FONT></P>
<P><FONT size=2>　　1、这个版本的QQ安装时，生成4个额外的病毒文件：这个版本的QQ安装完毕后，除了生成QQ正常使用的文件外，的确会在系统文件夹c:\windows\downlo~1下生成多余的4个文件，其中2个为dll动态库文件，1个为exe可执行文件，一个为dat数据文件。这4个文件互相配合，形成了一套功能完备的病毒程序（病毒行为详见后面的分析） </FONT></P>
<P><FONT size=2>　　2、病毒文件会在系统注册表中增加一个独立于QQ启动项之外的启动项：这4个文件被创建后，会在系统注册表中增加一个名为“_TBHTray”的启动项，路径指向刚才所发现的2个dll文件中的一个，以保证这些文件能在系统启动时被自动加载。因此，他们的自我启动，在此时与QQ是否存在无关了 </FONT></P>
<P><FONT size=2>　　3、病毒文件采用多种方法实现自我隐藏：不知出于何种目的，这4个文件在自我隐藏方面可谓煞费苦心，集多个典型病毒的隐藏方法于一身，分别是：&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;文件名随机生成，即便在同一台电脑上，每次安装QQ2005 BETA3，这4个文件的文件名都不相同，使得你很难找到 调用系统函数，将自身的文件属性设置为系统级，使得在windows窗口模式下根本无法看到这些病毒文件，必须使用dos命令行模式才可看到。&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;无论你何时安装，它会自动将dll文件的生成时间设置为2005-9-8 16:38，这是QQ 2005beta3证实发布之前的日期，使你很容易忽略和QQ 2005 BETA3的联系。 </FONT></P>
<P><FONT size=2>　　4、该病毒使用钩子技术实现了自我保护机制，使用户根本无法手工删除该病毒 <BR>　　在系统的最底层，挂了一个Debug钩子，这个钩子随着系统的启动而启动，即使在安全模式下也会运行，保证从最底层获得系统的控制权。 </FONT></P>
<P><FONT size=2>　　此外，该病毒还另外挂了CBT钩子和键盘监视钩子，这两个钩子和前面提到的debug钩子相互配合，互相保护，不断刷新系统注册表及自身文件列表，一旦发现注册表项或文件项被删除，即会自动重新创建。这三个钩子均无法手工停止，即便杀死QQ所有的进程后依然在工作。 </FONT></P>
<P><FONT size=2>　　5、该病毒具备自我升级机制，会绕开防火墙随时从互联网上升级到更新的版本 </FONT></P>
<P><FONT size=2>　　该病毒的exe文件负责客户端与互联网服务器的通信与升级，此exe文件在用户每次打开IE时都会向互联网服务器发回信息，并根据服务器的指令决定是否升级。由于该程序利用了IE访问网络的80端口，因此会绕开绝大多数的网络防火墙，使得升级在不知不觉在进行！ </FONT></P>
<P><FONT size=2>　　6、该病毒记录了用户上网所一举一动，并很有可能将这些内容打包发给了它的服务器 </FONT></P>
<P><FONT size=2>　　由于该病毒在系统中挂了一个键盘钩子和CBT钩子，它截获并记录用户使用电脑的一举一动，包括访问的网址，地址栏输入的内容，搜索词，用户名及密码等。同时我还发现，在我打开IE 时，这个病毒均会向服务器会传一大堆的数据，由于这些数据已经加密，我无法获知究竟是什么内容，但根据数据排列和信息量来看，极有可能是用户上网的访问记录等极其敏感的隐私信息！ </FONT></P>
<P><FONT size=2>　　7、该病毒在QQ卸载后依然会存在在用户的机器中，无法彻底清除 </FONT></P>
<P><FONT size=2>　　如果将QQ 2005 BETA3卸载掉，这个时候，病毒文件依然会保留在机器里，并不被卸载掉。如果重新安装一遍，由于病毒的文件名是随机生成的，则又会在系统中增加一整套病毒文件。往复几次，则硬盘中的病毒文件数量将触目惊心！这些病毒文件互相嵌套，关系错综复杂，使得用户根本无法分清彼此间的关系，根本无法将该病毒彻底清除干净！ </FONT></P>
<P><FONT size=2>　　综上所述，此程序已经具备了病毒所有的特性：自我隐藏、自我变形、自我保护、快速传播、截获用户输入、悄悄升级等，因此，我可以得出颇为肯定的结论： </FONT></P>
<P><FONT size=2>　　在QQ官方网站</FONT><A href="http://www.qq.com"><FONT size=2>www.qq.com</FONT></A><FONT size=2>推出的qq 2005 beta3内嵌了一个地地道道的病毒程序！ </FONT></P>
<P><FONT size=2>　　由于分析工作没有全部完成，加之该病毒正处在潜伏期，目前还不是很清楚该病毒程序所做的一切行为，但目前已经能对该病毒的危害得出一定的结论了。该病毒会产生的危害有： </FONT></P>
<P><FONT size=2>　　1、降低系统稳定性，导致部分用户电脑崩溃 </FONT></P>
<P><FONT size=2>　　由于该病毒中滥用文件变名、Debug钩子、自我保护等技术，使得系统稳定性大受影响。测试期间，测试机多次停止响应。如果使用工具强制删除掉该病毒其中的某个dll文件，由于该病毒自我保护机制的不成熟，甚至会使得启动无法启动。 <BR>　　由于QQ是全国装机量最大的软件，覆盖在上千万台电脑上，只要以上问题出现概率大于1%（事实上我测试时接近10%），必将导致数十万的用户无法继续使用电脑，危害相当严重！！ </FONT></P>
<P><FONT size=2>　　2、急剧降低系统性能 </FONT></P>
<P><FONT size=2>　　由于该病毒在不断的刷新注册表、文件列表，同时利用钩子截获用户的所有输入，因此使得系统性能极具下降，这种下降在打开IE时表现得尤为明显。在未安装此病毒的测试机上，连续打开10个IE后，再打开IE窗口的速度与没有明显减慢；在已安装此病毒的测试机上，打开第一个IE窗口时就明显感觉到顿挫感，在打开第10个窗口时，常需数秒以上，最长时甚至长达1分钟，无法忍受！！ </FONT></P>
<P><FONT size=2>　　在访问新浪、搜狐等大型网站时，也能明显感觉到打开网页的速度明显降低，常常点击链接后机器失去响应数秒。 </FONT></P>
<P><FONT size=2>　　3、窃取用户隐私 </FONT></P>
<P><FONT size=2>　　该病毒截获了用户所有的输入，因此安装了该病毒的机器即无隐私可言，上网的网址、输入的用户名、密码、搜索用过的搜索词均会被该病毒截获。最严重的，如果用户在机器上使用过银行的网上支付系统，则存在极大的风险丢失卡号及密码，被偷盗钱财。 </FONT></P>
<P><FONT size=2>　　4、有可能在互联网上引发又一次轮蠕虫冲击波，导致互联网瘫痪 </FONT></P>
<P><FONT size=2>　　由于附着在QQ上，所以该程序会以每天近百万的速度散播在互联网上，不需要太久，它将在数千万台电脑上潜伏。如果该病毒象其它病毒一样，集中在一天内爆发，那将是比冲击波更大的灾难，整个互联网，用户的机器，都将瘫痪，后果不堪设想！！ </FONT></P>
<P><FONT size=2>　　对于这样严重的病毒事件，强烈要求腾讯公司给出明确说法并对广大用户公开道歉！此外，我已经把这病毒程序提交给了诺顿、卡巴司机等多个病毒厂商，希望他们尽快能将其加入最新病毒库，保障网民的安全！同时我也奉劝广大互联网用户，在该问题解决之前，不要下载安装QQ 2005 BETA3</FONT></P>
<P><FONT size=2>结果:</FONT></P>
<P><BR><FONT size=2>今天看了这篇通告:</FONT></P>
<P><FONT size=2>尊敬的用户： </FONT></P>
<P><BR><FONT size=2>腾讯QQ2005 Beta3中，有一个可选择安装的地址栏搜索插件。该插件采用了“动态文件名”技术，此项技术在一些反病毒软件中可能引起误报，可能会给部分用户带来困扰，对此我们深表歉意。 </FONT></P>
<P><BR><FONT size=2>为此，我们修正了地址栏搜索插件，去除了容易误会的“动态文件名”技术，用户可以自主选择是否下载升级。 </FONT></P>
<P><BR><FONT size=2>感谢广大用户对腾讯公司的关爱和支持。 </FONT></P>
<P><BR><FONT size=2>腾讯公司 </FONT></P>
<P><FONT size=2>二OO五年九月三十日 </FONT></P>
<P><FONT size=2>评论:</FONT></P>
<P><FONT size=2>我想肯定是QQ安全中心(和金山毒霸合作搞的)拿我们用户当试验品,而腾讯公司为了逃避责任,力图欺骗QQ大众不懂技术,用"动态文件名"来蒙我们.没有一点诚意!</FONT></P>
<P><FONT size=2>同时我警告一些杀毒软件公司不要干一些违背职业道德的事,会遭到大众的漫骂的.</FONT></P>
<P><FONT size=2>必须公开道歉!<BR><BR>【文章结束】<BR><BR>作者说得似乎有点危言耸听，不过俺还是不发表评论的好，呵呵，只是今天donews又把这件事情翻起来抄，觉得有意思，所以将内容转过来给咱们blogjava的人看看。<BR>btw：前段时间下了lumaqq旧版的源代码，分析了一下，程序比较大，不知道什么时候才能看完，毕竟lumaqq是Java编写的，而且功能还比较强（呵呵，可以通过插件发现隐身的朋友哦，够实在了吧），其他的如Gaim这些跟Java八辈子打不到一起，而Jxta在国内基本没有了声息，郁闷啊，以前还花了几个星期功夫把Jxta的教程看完了，以为可以赶上躺，凑个热闹，可惜啊……</FONT></P><img src ="http://www.blogjava.net/chenpengyi/aggbug/14856.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-06 10:41 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/06/14856.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL 5.0新特性之视图（中文教程，原创）</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/05/14809.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Wed, 05 Oct 2005 03:39:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/05/14809.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14809.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/05/14809.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14809.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14809.html</trackback:ping><description><![CDATA[<P><FONT color=#000000><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;花了国庆的部分时间，终于完成了这个教程的翻译了，现在可以想象当年候捷先生翻译Think in Java是多么困难的了，唉，累啊，好久没运动过了，快找个机会去玩玩。可惜深圳没什么地方可以运动的，订运动场稍微慢一点就没了……政府问题，不去讨论。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;回到正题，关于这个翻译我十分推荐大家看看，因为对MySQL来说，实现了视图确实是一个很大的进步，而且能给MySQL开发者带来的好处不仅仅是速度上的，更多是开发和维护效率上的改进。<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这里举一个书中的例子吧：<BR><BR><BR>Example: Constraint checks 示例：约束条件检查</FONT></FONT></P>
<P><FONT color=#000000><FONT size=2>MySQL支持NOT NULL的列约束，如：<BR>&nbsp;<BR>CREATE TABLE t (&nbsp;<BR><BR>&nbsp; column1 INT NOT NULL,&nbsp;&nbsp;<BR><BR>&nbsp; column2 INT NOT NULL);&nbsp;<BR>&nbsp;<BR><BR><BR>这并非MySQL约束的全部功能，但是还是不能做到只允许两列中其中一列可以为空或者让列1数值在1到5之间，又或者使列1在某些特殊情况下可以为空。不过，我们可以使用视图的定义通过下面的方法实现：</FONT></FONT></P>
<P><FONT color=#000000><FONT size=2>CREATE TABLE t (column1 INT, column2 INT); <BR>&nbsp;<BR>CREATE VIEW v AS <BR><BR>SELECT column1, column2 FROM t <BR><BR>WHERE (column1 is NOT NULL OR column2 IS NOT NULL)&nbsp;<BR><BR>&nbsp; AND column1 BETWEEN 1 AND 5 <BR><BR>WITH CHECK OPTION;&nbsp;<BR><BR>&nbsp;<BR>之后就可以通过对视图v进行插入或更新，达到我前面所需要的效果，在特殊情况下允许为空。<BR><BR><BR>&nbsp;是不是比较有用呢？前面我写了篇关于MySQL子查询的文章，但有了视图其实可以免去部分使用子查询的情况，大家看看下面这个例子吧：<BR><BR><BR><BR></FONT><SPAN lang=EN-US style="FONT-SIZE: 12.5pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><FONT size=2><SPAN style="COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0.05pt; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体">示例：子查询的替代<BR></SPAN></FONT></SPAN></FONT><FONT color=#000000><SPAN lang=EN-US style="FONT-SIZE: 12.5pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><FONT size=2><SPAN style="COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0.05pt; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体">&nbsp;<BR>在MySQL 4.1版本以后就开始支持FROM语句中的子查询了，例如：<BR><BR>&nbsp;<BR>SELECT * <BR><BR>FROM (SELECT * FROM t2 UNION SELECT * FROM t3) AS t2_t3;&nbsp;<BR><BR>&nbsp;<BR>但是下面这样做会更好：<BR>&nbsp;<BR><BR>CREATE VIEW t2_t3 AS <BR><BR>SELECT * FROM t2 UNION SELECT * FROM t3; <BR>&nbsp;<BR>SELECT * FROM t2_t3; <BR><BR><BR><BR>把这个转化为对视图的查询会更好更方便，因为你可能会使用复杂的对大数字的查询语句（比方说55个字），语句中包括对系统变量的一些定义，那如果有人改变了表t2，你可能要改这个55字的SELECT语句，然而使用视图，一切都没变，你需要改的只是视图定义中的表名。&nbsp;<BR><BR><BR>&nbsp;<BR>另一个子查询的例子：在MySQL 5.0.3中不允许使用AVG(DISTINCT ...)，因为下面这个语句是非法语句：&nbsp;<BR><BR>&nbsp;<BR>SELECT AVG(DISTINCT column1) FROM t; <BR>&nbsp;<BR>但采用下面方法能实现一样的效果，而且是合法的： <BR>&nbsp;<BR>CREATE VIEW v AS SELECT DISTINCT column1 FROM t; <BR>&nbsp;<BR>SELECT AVG(column1) FROM v;<BR><BR><BR>下面是中文版的下载地址：<BR><BR><A href="/Files/chenpengyi/MySQL-Views-Translation-CN.rar"><FONT color=#1d58d1>http://www.blogjava.net/Files/chenpengyi/MySQL-Views-Translation-CN.rar</FONT></A><BR>转载时保留个人及出处信息，否则可能被视为侵权，呵呵。<BR><BR>如果需要英文原版，可以到下面地址下载：<BR><A href="http://dev.mysql.com/tech-resources/articles/mysql-views.pdf"><FONT color=#1d58d1>http://dev.mysql.com/tech-resources/articles/mysql-views.pdf</FONT></A><BR><BR><BR></P></SPAN></FONT></SPAN></FONT><img src ="http://www.blogjava.net/chenpengyi/aggbug/14809.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-05 11:39 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/05/14809.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>最近作的一个博弈模型</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/02/14677.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sun, 02 Oct 2005 15:52:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/02/14677.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14677.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/02/14677.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14677.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14677.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 26.25pt; mso-char-indent-count: 2.5"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在本文的分析中，我们定义了公司前五大股东为公司的大股东，从描述性统计中可以看出，我国上市公司第一大股东和其他大股东持股比例之间存在明显的差异，</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我国上市公司前五大股东持股比例依次为</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">43.9977%</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">、</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">8.4862%</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">、</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">3.3620%</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">、</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">1.8621%</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">和</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">1.1844%</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">。可见第一大股东处于绝对优势地位，第二至第五大股东的持股比例不高，但我们仍然不可以忽视以第二大和第三大股东为代表的制衡性股东对第一大股东的制衡作用，由此根据实证分析的结果，我们对前五大股东进行相应的划分：</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">股东</SPAN><SPAN lang=EN-US>L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为第一大股东或是控股地位，持股比例</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">为</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: cajcd-fntlt; mso-font-kerning: 0pt">A</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，股东</SPAN><SPAN lang=EN-US>M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代表第二或第三大股东，所占股份为</SPAN><SPAN lang=EN-US>B</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</SPAN><SPAN lang=EN-US>S</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代表其他大股东，其持股比例为</SPAN><SPAN lang=EN-US>C</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，则有</SPAN><SPAN lang=EN-US>A&gt;B&gt;C</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</SPAN><SPAN lang=EN-US>0&lt;A,B,C&lt;1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN><SPAN lang=EN-US>λ<SUB>1</SUB></SPAN><SUB><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN></SUB><SPAN lang=EN-US>λ<SUB>2</SUB></SPAN><SUB><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN></SUB><SPAN lang=EN-US>λ<SUB>3 </SUB></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">分别表示监督强度</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt">,</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">与持股比例有关</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt">, </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">持股比例越大</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt">, </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">监督强度越大</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt">.</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">即</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">λi=λ(A,B,C,S),</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt"> </SPAN><I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">S</SPAN></I><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">公公为司规模，设监督成本为</SPAN><I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">C</SPAN></I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">, </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">则</SPAN><I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">C </SPAN></I><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">是监督强度</SPAN><I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">Q </SPAN></I><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">和公司规模</SPAN><I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">S </SPAN></I><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">的函数</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">, <I>C </I>= <I>C </I>(<I>Q </I>, <I>S </I>)</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">（引用唐国宗等研究），为了便于研究，我们假定所有的制衡（侵害）成本相同，</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">当大股东没有选择制衡（或是侵害）</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">, </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">则制衡（侵害）的成本为</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">0</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">， </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">同时我们设定项目收益为</SPAN><I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">R</SPAN></I><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">(</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 仿宋_GB2312; mso-font-kerning: 0pt">来自项目的投资回报</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">) ,L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">大股东企图通过侵害获得的收益为</SPAN><SPAN style="FONT-FAMILY: Batang; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">￡</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">，</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">在一次性博弈中，控制股东</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">根据自身的成本收益情况，确定是否侵害其他股东利益；而股东</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">和</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">S</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">由于其处于相对劣势地位，并没有动机去侵害</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">的利益，只能选择制衡（在决策图中用“</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">Y</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">”表示）或是不制衡（在决策图中用“</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">N</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">”表示），同时为了去区别</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">S</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">和</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">大股东的制衡效果及其收益，根据实证研究结果我们假定，大股东</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">可以在其制衡中获取或是挽回收益，而大股东</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">S</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">由于其持股比例过低，其所拥有的收益索取权几乎可以忽略不计，为此</SPAN><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt">S</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">无法从制衡中获取或是挽回相应的收益</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">，</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">具体的博弈决策树模型及其收益如下：</SPAN></FONT><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR></FONT></SPAN></SPAN><FONT size=2><SPAN lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;</SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">图：博弈决策树略</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-bidi-font-size: 10.5pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">根据上图的收益分布，我们可以比较明显的看到，当</SPAN><SPAN lang=EN-US>[λ<SUB>1 </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)]*(R-</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US>)+</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US>-C&gt;[λ<SUB>1 </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)] *</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt">R</SPAN><SPAN lang=EN-US>, </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">即</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Batang; mso-hansi-font-family: Batang; mso-font-kerning: 0pt">－</SPAN><SPAN lang=EN-US>[λ<SUB>1 </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)]*</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt"> </SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Batang; mso-hansi-font-family: Batang; mso-font-kerning: 0pt">－</SPAN><SPAN lang=EN-US>Ca&gt;0 </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，也就是说，</SPAN><SPAN lang=EN-US>L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从侵害其他各方的行为中获得的收益大于成本和因侵害带来的收益总数减少的份额之和时，就会选择侵害其他股东的利益，而在</SPAN><SPAN lang=EN-US>L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">选择侵害的情况下，只要</SPAN><SPAN lang=EN-US>[λ<SUB>2</SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)]* (R-</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US>) </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</SPAN><SPAN lang=EN-US>[λ<SUB>2 </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>)]</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US>-Cb&gt;[λ<SUB>2</SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)]* (R-</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US>)</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt"> - [λ<SUB>2 </SUB>/(λ<SUB>3</SUB>+λ<SUB>2</SUB>)]*<SUB> </SUB></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</SPAN><SPAN lang=EN-US>M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">就会选择制衡，即当</SPAN><SPAN lang=EN-US>λ<SUB>2</SUB></SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US>[1<SUB> </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>)<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">＋</SPAN><SPAN lang=EN-US>1/(λ<SUB>3</SUB>+λ<SUB>2</SUB>)] &gt; C</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">时，也就是说，当</SPAN><SPAN lang=EN-US>M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的制衡收益（或是挽回的损失）高于其成本时，</SPAN><SPAN lang=EN-US>M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的占优策略是选择制衡；而对于</SPAN><SPAN lang=EN-US>S</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来说，无论在任何情况下，制衡都不可能出现利己的结果，所以</SPAN><SPAN lang=EN-US>S</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">更倾向于“搭便车”，或是以“用脚投票”的方式选择退出。当</SPAN><SPAN lang=EN-US>L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">选择侵害时，对整个公司而言，此时总收益为</SPAN><SPAN lang=EN-US>R-C</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，小于各方都不侵害（或制衡）时的收益</SPAN><SPAN lang=EN-US>R</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，所以这是一种非效率的均衡状态，必须通过博弈规则的修改实现向效率均衡的转变。</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可以考虑三种途径，第一，降低</SPAN><SPAN lang=EN-US>λ<SUB>1 </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的值，直至</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Batang; mso-hansi-font-family: Batang; mso-font-kerning: 0pt">－</SPAN><SPAN lang=EN-US>[λ<SUB>1 </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)]*</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt"> </SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt; mso-fareast-font-family: 宋体">&gt;</SPAN><SPAN lang=EN-US> Ca,</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">也就是优化股权结构，通过不同股东之间的相互制衡降低控制股东侵害中小股东利益时获得的额外收益。第二种，降低</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的值，直至</SPAN><SPAN lang=EN-US>[(λ<SUB>2 +</SUB>λ<SUB>3</SUB>)<SUB> </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)]*</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt"> </SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt; mso-fareast-font-family: 宋体">&lt;</SPAN><SPAN lang=EN-US> Ca</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，也即在现有股权结构下，通过规范控制股东行为、加强监管，降低控制股东侵害中小股东利益的直接收益。第三种，增加</SPAN><SPAN lang=EN-US>C</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，使得</SPAN><SPAN lang=EN-US>[(λ<SUB>2 +</SUB>λ<SUB>3</SUB>)<SUB> </SUB>/(λ<SUB>1</SUB>+λ<SUB>2</SUB>+λ<SUB>3</SUB>)]*</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt"> </SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt">￡</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Batang; mso-font-kerning: 0pt; mso-fareast-font-family: 宋体">&lt;</SPAN><SPAN lang=EN-US> Ca</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，即通过加强中小股东利益保护的措施，使控制股东在侵害中小股东利益时必须付出额外成本。</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">同时我们也可以发现，当大股东</SPAN><SPAN lang=EN-US>M</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">选择制衡时，可以较大程度的减</SPAN><SPAN lang=EN-US>L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的侵害收益，直至是</SPAN><SPAN lang=EN-US>L</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">放弃侵害，所以在股权结构设计中提高制衡行股东的持股比例，也是防止第一大股东或控股股东侵害中小股东的有效办法。通过以上这些途径，最终改变了支</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">付矩阵，迫使控制股东重新进行成本收益分析，实现了从（侵害，不制衡，不制衡）到（不侵害，不制衡，不制衡）均衡状态的转变。在这个过程中，股权结构的约束作用体现得非常明显，控制股东和其他股东的股权比例越接近，对控制股东的约束性也就越强，控制股东行为就越与其他股东及公司整体利益保持一致。</SPAN><SUB><SPAN lang=EN-US><o:p></o:p></SPAN></SUB></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SUB><SPAN lang=EN-US><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></SUB></P><img src ="http://www.blogjava.net/chenpengyi/aggbug/14677.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-02 23:52 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/02/14677.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>计量经济学术语</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/01/14585.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sat, 01 Oct 2005 05:29:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/01/14585.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14585.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/01/14585.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14585.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14585.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 计量经济学术语A &nbsp;校正R2（Adjusted R-Squared）：多元回归分析中拟合优度的量度，在估计误差的方差时对添加的解释变量用一个自由度来调整。&nbsp;&nbsp;&nbsp;&nbsp;对立假设（Alternative Hypothesis）：检验虚拟假设时的相对假设。&nbsp;&nbsp;&nbsp;&nbsp;AR（1）序列相关（AR(1) Serial C...&nbsp;&nbsp;<a href='http://www.blogjava.net/chenpengyi/archive/2005/10/01/14585.html'>阅读全文</a><img src ="http://www.blogjava.net/chenpengyi/aggbug/14585.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-01 13:29 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/01/14585.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>新版QQ携带恶性病毒（个人看法，仅供参考）！</title><link>http://www.blogjava.net/chenpengyi/archive/2005/10/01/14577.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Sat, 01 Oct 2005 03:36:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/10/01/14577.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14577.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/10/01/14577.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14577.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14577.html</trackback:ping><description><![CDATA[<FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真是不看不知道，一看吓一跳，腾讯居然玩起病毒来了，原本好好的QQ非要带上病毒，搞得网民们心惊胆战的。本来还想下载这个所谓的新版的QQ用用，其实新版估计也没什么功能上的创新了，顶多也就是多了几个无聊的功能，根本不是IM所需要的，这里顺便骂两句，QQ是IM，不是整合的娱乐平台，没事干把一个mp3播放器硬拼进去了，是炫耀技术么？这mp3播放软件的编写技术对于现在的程序员来说太简单了，当然要到winamp和foobar的水平还是不够，但QQ上带的这个也确实是烂啊，资源占用大，功能弱，那我们为什么要用这个呢？反正是不喜欢没用又要占用资源的东西，特别是这些强制赠送的垃圾软件（不是说这个mp3播放软件垃圾，如果分开作为一个产品其实还是蛮可以接受的，只是因为腾讯硬要把这两个不相关的东西放在一起，最后造成1+1&lt;1的结果）。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;好，回到正题，新版的QQ携带的病毒是腾讯对外宣称的一个叫“动态文件名”新技术，在这个版本的QQ安装时会生成4个常驻内存的病毒文件，同时会在注册表的系统启动处添加自动启动项目，该病毒采用了多种方法，包括自我隐藏、自我保护，用户根本无法手工删除（大家尝试过3721这个无赖病毒插件吗？我整整花了半个小时才清理掉，但是这个病毒更恶毒，一般用户根本没办法清理），而且还会自动升级（没有任何提示），最可怕的是在QQ卸载后依然会存在于用户的机器中，无法彻底清除。我对这个所谓新技术的定义就是垃圾＋病毒，在我看来，它除了破坏数据之外所有病毒的特性都有了。（关于这类型病毒的清除方法一般也就是安全模式启动，然后找删除注册表启动项目，关闭注册的服务，然后删除文件）<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;实在不理解为什么腾讯要用这样的招数，其实QQ在用户中还是很受欢迎的，这么多年的经营腾讯已经是创下了一个很不错的局面了，但是近来腾讯的动作却令人费解，一是给自己的软件加上了很多没有人会用的功能，二是QQ等级在线计时制度浪费了国家电力（很多无聊人开着机子就是为了挂这个等级），三就是这个所谓的“动态文件名”新技术，当然还有很多其他的小动作，譬如实名制等。都让人觉得比较郁闷，这QQ怎么了，还能用来聊天吗？想必腾讯自己也感觉到了自己的市场份额在减少、在线人数下降的趋势吧，除去MSN、UC等的强攻，更多的问题在腾讯自身。当然也可以看到QQ做得很不错了，也很关注用户，很多细微的环节也都考虑到了。但如果在这里摔跤就真的不值得了。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;好了，俺吃饭去了，吃完饭安装一下这个新版QQ，明天把新版QQ的这个病毒清除方法贴上来。</FONT><img src ="http://www.blogjava.net/chenpengyi/aggbug/14577.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-10-01 11:36 <a href="http://www.blogjava.net/chenpengyi/archive/2005/10/01/14577.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>求职面试资料大全！</title><link>http://www.blogjava.net/chenpengyi/archive/2005/09/30/14465.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Thu, 29 Sep 2005 16:13:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/09/30/14465.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14465.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/09/30/14465.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14465.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14465.html</trackback:ping><description><![CDATA[<P><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;今年毕业生开始找工作的时间也到了，想想当年自己懵懵懂懂的去找工作，确实比较盲目，而且感到很多东西没有方向，求职的时候也不知道该怎么准备。现在自己也走过了这一步，而且手头有部分对毕业生很有用的资料，不敢一个人独享（其实也是没有用了，呵呵），所以拿出来大家分享一下。<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;求职简历模板30个，其中有中文的简历，简历封面，英文简历，院校说明等，比较齐了，需要的把这些模板改改，封面上的资料图片换成自己的学校就可以了。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址是:&nbsphttp://www.blogjava.net/Files/chenpengyi/hr.rar</A><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;面试题我博客上有不少，是微软的（其实只有部分是微软的），相信已经很全了，我还有，但没整理好，整理好了就添加到后面。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址是:<A href="http://www.blogjava.net/chenpengyi/archive/2005/09/19/13452.html">http://www.blogjava.net/chenpengyi/archive/2005/09/19/13452.html</A></FONT></P><img src ="http://www.blogjava.net/chenpengyi/aggbug/14465.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-09-30 00:13 <a href="http://www.blogjava.net/chenpengyi/archive/2005/09/30/14465.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>星际争霸地图（RPG，hunters）下载（陆续更新！）</title><link>http://www.blogjava.net/chenpengyi/archive/2005/09/28/14336.html</link><dc:creator>陈朋奕</dc:creator><author>陈朋奕</author><pubDate>Wed, 28 Sep 2005 13:50:00 GMT</pubDate><guid>http://www.blogjava.net/chenpengyi/archive/2005/09/28/14336.html</guid><wfw:comment>http://www.blogjava.net/chenpengyi/comments/14336.html</wfw:comment><comments>http://www.blogjava.net/chenpengyi/archive/2005/09/28/14336.html#Feedback</comments><slash:comments>35</slash:comments><wfw:commentRss>http://www.blogjava.net/chenpengyi/comments/commentRss/14336.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenpengyi/services/trackbacks/14336.html</trackback:ping><description><![CDATA[<font size="2">以下地图下载地址都经过本人亲自测试，保证能用（补丁地址就不保证了）：<br /><br /></font>
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/%E6%98%9F%E9%99%851.08b%E7%A1%AC%E7%9B%98%E7%89%88%E8%A1%A5%E4%B8%81.zip">
				<font size="2">星际1.08b硬盘版补丁.zip </font>
		</a>
		<br />
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/%E6%98%9F%E9%99%851.09%20%E7%A1%AC%E7%9B%98%E7%89%88%E8%A1%A5%E4%B8%81.zip">
				<font size="2">星际1.09 硬盘版补丁.zip </font>
		</a>
		<br />
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/%E6%98%9F%E9%99%851.10%20%E7%A1%AC%E7%9B%98%E7%89%88%E8%A1%A5%E4%B8%81.rar">
				<font size="2">星际1.10 硬盘版补丁.rar </font>
		</a>
		<br />
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/%E6%98%9F%E9%99%851.11B%20%E7%A1%AC%E7%9B%98%E7%89%88%E8%A1%A5%E4%B8%81.rar">
				<font size="2">星际1.11B 硬盘版补丁.rar </font>
		</a>
		<br />
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/%E6%98%9F%E9%99%851.11B%E7%89%88%E5%85%8DCD%E8%A1%A5%E4%B8%81.rar">
				<font size="2">星际1.11B版免CD补丁.rar </font>
		</a>
		<br />
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/%E6%98%9F%E9%99%85%E6%88%98%E7%BD%91%E7%99%BB%E5%BD%95%E5%99%A8.zip">
				<font size="2">星际战网登录器.zip </font>
		</a>
		<br />
		<br />
		<font size="2">测试星际最高水平的一个游戏Rpg地图，我见过的最有意思的地图，玩完这个地图估计你的星际水平会上n个层次，但臭鸡蛋也会狂扔向你。<br /></font>
		<a href="/Files/chenpengyi/bug.rar">
				<font size="2">http://www.blogjava.net/Files/chenpengyi/bug.rar </font>
		</a>
		<br />
		<br />
		<font size="2">下面才是地图：<br /></font>
		<u>
				<font color="#0000ff">
						<br />
				</font>
		</u>
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/The%20Hunters%20%E5%9C%B0%E5%9B%BE%E5%85%A8%E9%9B%86.rar">
				<font size="2">The Hunters 地图全集.rar </font>
		</a>
		<br />
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/Lost%20Temple%20%E5%9C%B0%E5%9B%BE%E5%85%A8%E9%9B%86.rar">
				<font size="2">Lost Temple 地图全集.rar</font>
		</a>
		<br />
		<a href="http://www.nyw.com.cn/down/%E6%98%9F%E9%99%85%E4%BA%89%E9%9C%B8/WCG2003%20%E6%A0%87%E5%87%86%E5%9C%B0%E5%9B%BE.rar">
				<font size="2">WCG2003 标准地图.rar </font>
		</a>
		<br />
		<font color="#000000">
				<font size="2">Four Countries War 地址：</font>
				<a href="http://www.hots.cn/map/FCW/FCW%2006-3-8.rar">
						<font size="2">http://www.hots.cn/map/FCW/FCW%2006-3-8.rar</font>
				</a>
				<br />
		</font>
		<font color="#000000">
				<font size="2">寻秦记[第一集] 地址：</font>
				<a href="http://www.hots.cn/map/xqj/www.hots.cn_XQJ.rar">
						<font size="2">http://www.hots.cn/map/xqj/www.hots.cn_XQJ.rar</font>
				</a>
				<br />
				<font size="2">CKCG 2005 星际争霸地图 地址：</font>
				<a href="http://dl.esport.com.cn/sc/ckcg/ckcg_scmap.rar">
						<font size="2">http://dl.esport.com.cn/sc/ckcg/ckcg_scmap.rar</font>
				</a>
				<br />
				<font size="2">
						<span class="hei14b">《星际争霸》RPG地图打包下载(115张)  <u>http://download.zol.com.cn/down.php?softid=37862&amp;subcatid=66&amp;site=3</u></span>
						<br />
						<br />
						<br />附录：<br />星际争霸1.08秘籍,作弊码，单机使用。 <br />Power overwhelming 无敌 <br />operation cwal 加速生产 <br />show me the money 增加10,000气体和矿物 <br />the gathering 魔法无限 <br />game over man 游戏立即失败 <br />noglues 敌人无法施放魔法 <br />staying alive 任务无法完成 <br />there is no cow level 立即完成目前任务 <br />whats mine is mine 水晶矿无限 <br />breathe deep 气体无限 <br />something for nothing 开放所有可生产的选项 <br />black sheep wall 地图全亮 <br />medieval man 单位数量无限生产 <br />modify the phase variance 研发所有科技 <br />war aint what it used to be 开关战争迷雾 <br />food for thought 人口无限 <br />redio free zerg 任务游戏时的隐藏的歌曲 </font>
		</font><img src ="http://www.blogjava.net/chenpengyi/aggbug/14336.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenpengyi/" target="_blank">陈朋奕</a> 2005-09-28 21:50 <a href="http://www.blogjava.net/chenpengyi/archive/2005/09/28/14336.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>