📄 c++ builder 程序设计实用教程 - 9_3_1 进程的概念 - 张晋 - 17xie.htm
字号:
style="BACKGROUND-COLOR: #bfbfbf"><SPAN lang=EN-US
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN
style="mso-list: Ignore">@<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: 楷体_GB2312; mso-ascii-font-family: 'Times New Roman'">与用户交互的进程优先级高可以使得应用程序及时的响应用户的输入。</SPAN></FONT></P>
<P class=MsoNormalIndent 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>
<P class=MsoNormalIndent
style="MARGIN: 0cm 0cm 0pt 42.5pt; TEXT-INDENT: -21.25pt; mso-list: l2 level1 lfo2; tab-stops: list 21.25pt"><SPAN
lang=EN-US
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN
style="mso-list: Ignore">n<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></P>
<P class=MsoNormalIndent 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">CPU</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">直到操作完成才真正进入空闲状态。而使用多进程,应用程序可以在一个现成进入等待的过程中,转而去执行其他的进程,避免了瓶颈。</SPAN></P>
<P class=MsoNormalIndent
style="MARGIN: 0cm 0cm 0pt 42.5pt; TEXT-INDENT: -21.25pt; mso-list: l3 level1 lfo3; tab-stops: list 21.25pt 42.25pt"><SPAN
lang=EN-US
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN
style="mso-list: Ignore">n<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></P>
<P class=MsoNormalIndent 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">CPU</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有更多的时间去执行更为紧迫的任务。</SPAN></P>
<P class=MsoNormalIndent
style="MARGIN: 0cm 0cm 0pt 42.5pt; TEXT-INDENT: -21.25pt; mso-list: l1 level1 lfo4; tab-stops: list 21.25pt"><SPAN
lang=EN-US
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN
style="mso-list: Ignore">n<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></P>
<P class=MsoNormalIndent 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>
<P> </P></DIV></CENTER>
<HR>
<SPAN id=theurl
style="FONT-SIZE: 12px">本页地址:http://www.17xie.com/read.php?pid=13927</SPAN>
</DIV>
<DIV id=read-title style="BORDER-TOP: white 1px solid">
<DIV
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: right; PADDING-BOTTOM: 8px; PADDING-TOP: 8px">
<TABLE>
<TBODY>
<TR>
<TD><NOBR><SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=1'">|<</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=99'">上一页</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=97'">97</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=98'">98</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=99'">99</SPAN>
<SPAN class=page-here
onclick="window.location.href='/read.php?bid=303&seq=100'">100</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=101'">101</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=102'">102</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=103'">103</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=101'">下一页</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=105'">>|</SPAN></NOBR>.</TD>
<TD><INPUT class=input-text
onkeydown='if(window.event.keyCode==13)window.location.href="/read.php?bid=303&seq="+this.value'
style="WIDTH: 25px"></TD>
<TD style="PADDING-TOP: 2px">[共105页]</TD></TR></TBODY></TABLE></DIV></DIV>
<DIV id=read-mpage>
<DIV
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; TEXT-ALIGN: center">[关注本页]
[在本页中加入书签] [收藏本书] [推荐本书] </DIV></DIV><!-- foot -->
<DIV id=xie_bottom><A class=xie1 href="http://www.17xie.com/help/help-wzjs.html"
target=_blank>关于我们</A> <SPAN class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/index.html" target=_blank>帮助中心</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m6" target=_blank>版权声明</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m7" target=_blank>免责声明</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m8" target=_blank>联系我们</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m9" target=_blank>友情链接</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/bbs/show_bbs.php?fid=130"><FONT
color=red>提交意见</FONT></A> <BR>Copyright <SPAN
style="FONT-FAMILY: arial">©</SPAN> 2007 17xie.com 互联网协同写书平台<BR>
<SCRIPT language=javascript
src="C++ Builder 程序设计实用教程 - 9_3_1 进程的概念 - 张晋 - 17xie.files/1261343.js"
type=text/javascript></SCRIPT>
<NOSCRIPT><A href="http://www.51.la/?1261343" target=_blank><IMG
style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"
alt=我要啦免费统计
src="C++ Builder 程序设计实用教程 - 9_3_1 进程的概念 - 张晋 - 17xie.files/go.htm"></A></NOSCRIPT>
</DIV></DIV>
<SCRIPT> setInterval("ajax_sr('/live.php','')",600000); function chcolor(sz) { $('read-conts').style.backgroundColor = sz; } function clcp() { var rng = document.body.createTextRange(); rng.moveToElementText(document.getElementById("theurl")); rng.execCommand("Copy"); } document.body.onkeydown = clcp; document.body.onmouseout = clcp; document.body.onclick = clcp; </SCRIPT>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -