⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 v3_slide0349.htm

📁 Embracing the C++ STL: Why Angle Brackets are Good for You
💻 HTM
字号:
<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=PowerPoint.Slide>
<meta name=Generator content="Microsoft PowerPoint 10">
<link id=Main-File rel=Main-File href="../roadtrip99.htm">
<link rel=Preview href=preview.wmf>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
p\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
v\:textbox {display:none;}
</style>
<![endif]-->
<title>Embracing the C++ STL</title>
<meta name=Description content="4/2/2002: Thread Safety">
<link rel=next href="v3_slide0388.htm">
</head>

<body background="v3_master19_background.gif" bgcolor="#333399" alink="#9999FF"
link="#99CCFF" vlink="#0066FF" text="#CCECFF" topmargin=0 leftmargin=0>

<table border=0 valign=top width=475 height=356 cellpadding=0 cellspacing=0>
 <tr>
  <td width=17 height=0 nowrap><img src="v3_space.gif" border=0></td>
  <td width=23 height=0 nowrap><img src="v3_space.gif" border=0></td>
  <td width=70 height=0 nowrap><img src="v3_space.gif" border=0></td>
  <td width=96 height=0 nowrap><img src="v3_space.gif" border=0></td>
  <td width=247 height=0 nowrap><img src="v3_space.gif" border=0></td>
 </tr>
 <tr>
  <td width=475 height=34 colspan=6></td>
 </tr>
 <tr>
  <td width=17 height=36></td>
  <td width=189 height=36 colspan=3>
  <table border=0 valign=top cellpadding=0 cellspacing=0>
   <tr>
    <td width=189 height=36><font face=Tahoma color="#CCFFFF" size=5>Thread
    Safety</font><br>
    </td>
   </tr>
  </table>
  </td>
  <td width=269 height=36 colspan=2></td>
 </tr>
 <tr>
  <td width=475 height=15 colspan=6></td>
 </tr>
 <tr>
  <td width=40 height=214 colspan=2></td>
  <td width=413 height=214 colspan=3>
  <table border=0 valign=top cellpadding=0 cellspacing=0>
   <tr>
    <td width=18 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=1 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=218 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=72 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=41 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=6 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=34 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=3 height=0 nowrap><img src="v3_space.gif" border=0></td>
    <td width=9 height=0 nowrap><img src="v3_space.gif" border=0></td>
   </tr>
   <tr>
    <td width=18 height=26><font face="Monotype Sorts" color="#0066FF" size=2>n</font></td>
    <td width=338 height=26 colspan=5><font face=Tahoma size=4>Official answer:
    STL has no thread</font><br>
    </td>
    <td width=57 height=26 colspan=4></td>
   </tr>
   <tr>
    <td width=18 height=26></td>
    <td width=291 height=26 colspan=3><font face=Tahoma size=4>safety
    obligations whatsoever</font><br>
    </td>
    <td width=104 height=26 colspan=6></td>
   </tr>
   <tr>
    <td width=413 height=4 colspan=10></td>
   </tr>
   <tr>
    <td width=18 height=26><font face="Monotype Sorts" color="#0066FF" size=2>n</font></td>
    <td width=384 height=26 colspan=8><font face=Tahoma size=4>One (bad)
    answer: have STL handle all</font><br>
    </td>
    <td width=11 height=26></td>
   </tr>
   <tr>
    <td width=18 height=25></td>
    <td width=219 height=25 colspan=2><font face=Tahoma size=4>synchronization
    issues</font><br>
    </td>
    <td width=176 height=25 colspan=7></td>
   </tr>
   <tr>
    <td width=413 height=5 colspan=10></td>
   </tr>
   <tr>
    <td width=18 height=26><font face="Monotype Sorts" color="#0066FF" size=2>n</font></td>
    <td width=375 height=26 colspan=7><font face=Tahoma size=4>Typical answer:
    make STL thread safe</font><br>
    </td>
    <td width=20 height=26 colspan=2></td>
   </tr>
   <tr>
    <td width=18 height=25></td>
    <td width=395 height=25 colspan=9><font face=Tahoma size=4>internally, but
    require users to insure no</font><br>
    </td>
   </tr>
   <tr>
    <td width=18 height=25></td>
    <td width=332 height=25 colspan=4><font face=Tahoma size=4>thread accesses
    a container when</font><br>
    </td>
    <td width=63 height=25 colspan=5></td>
   </tr>
   <tr>
    <td width=18 height=25></td>
    <td width=372 height=25 colspan=6><font face=Tahoma size=4>another thread
    modifies the container</font><br>
    </td>
    <td width=23 height=25 colspan=3></td>
   </tr>
  </table>
  </td>
  <td width=22 height=214></td>
 </tr>
 <tr>
  <td width=475 height=36 colspan=6></td>
 </tr>
 <tr>
  <td width=40 height=8 colspan=2></td>
  <td width=70 height=8><img src="v3_master19_image038.gif" border=0 width=70
  height=8></td>
  <td width=365 height=8 colspan=3></td>
 </tr>
 <tr>
  <td width=475 height=13 colspan=6></td>
 </tr>
</table>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -