亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? models.html

?? Concurrent Programming in Java
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
      <ul>        <li> Update internal state.        <li> Send a message.        <li> Create a new object.      </ul></ul><p> Further, the Java virtual machine may itself be thought of as anactive object/machine. Due to the wonders of Universal TuringMachines, the virtual machine object can ``pretend'' that it is any orall of the passive objects specified in a given program, so has aninterpretor loop specialized to:<UL>    <LI> Accept an instruction    <LI> Execute the instruction:    <UL>      <LI> If it is a passive object construction instruction, create a new            (passive) object with the required initial states and            attributes.      <LI> Else if it is a thread construction instruction, create a            new interpretor.      <LI> Else if it is an elementary operation on a            primitive object, then directly perform it it.      <LI> Else accept (and perform) all of the component instructions            listed in the body of the instruction    </UL></UL>According to this view, the strategy of choice for supporting Javaover multiple hosts would be via direct virtual-machine tovirtual-machine interaction, which is unfortunately hard to pull offin Java. The next section explores some alternatives.<p>(See, for example, OOSD<a href="javascript:if(confirm('http://g.oswego.edu/dl/oosdw3/ch6/node5.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://g.oswego.edu/dl/oosdw3/ch6/node5.html'" tppabs="http://g.oswego.edu/dl/oosdw3/ch6/node5.html">chapter 6</a>,<a href="javascript:if(confirm('http://g.oswego.edu/dl/oosdw3/ch15/node2.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://g.oswego.edu/dl/oosdw3/ch15/node2.html'" tppabs="http://g.oswego.edu/dl/oosdw3/ch15/node2.html">chapter 15</a>, and<a href="javascript:if(confirm('http://g.oswego.edu/dl/oosdw3/ch24/node1.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://g.oswego.edu/dl/oosdw3/ch24/node1.html'" tppabs="http://g.oswego.edu/dl/oosdw3/ch24/node1.html">chapter 24</a> formore discussion.)<h2><a name="secMix"></a>Mixing Concurrency and Distribution</h2>Most Java programs communicate with other programs. For example, eventhe act of firing up an Applet intrinsically involves communicationamong different programs typically residing on different machines.Additionally, each of these Java programs typically involves severalconcurrent threads.<p> Developing frameworks that support this can be attacked bytreating each Java program itself as a (distributed) object designedusing a per-object concurrency approach, that may in turn supportinternal concurrency, designed using a per-activity approach. Theremainder of this section introduces and surveys some of the basicissues and alternatives for doing this.<h3>Handles  (Names, References, Channels, Capablities, ...)</h3>Distributed objects pass each other directed messages.  That is,each message is meant to be received by some particular destinationobject(s). So you need a way of tagging or prefacing each messagewith a <em>handle</em> -- some kind of indication that controls whichobject(s) should receive the message.   <p>Handles can take any of a lot of different forms, for example:<ul>  <li> Long (say, 128 bit) integers serving as universally unique       object identifiers (UUIDs).  <li> (machine, port, local-id) tuples.  <li> URL/URI style designations.  <li> Hardware-level ports and channels (for ``physical'' connections).  <li> Uniquely scoped Java class names.  <li> Extensions of Java object references.  <li> <em>Capabilities</em>: Names with intrinsically associated        information that helps control their use.  <li> Locally scoped names that are resolved into more        direct form via registries or other mediators (as in        CORBA-style ORBs).</ul>While such implementation mechanics are arbitrary, they are centralto the construction of any object system. Once you decide on arepresentation, you have to live with it, and/or find ways of copingwith other people's representations.<h3>Acceptors</h3>Java object references serve as handles inside single Javaprograms (or Applets or whatever), but they have no `external'form, so cannot be used for distributed messaging. For purposes ofdeveloping most distributed object systems, thisrestriction is a feature rather than a bug in Java.Usually, you don't want most normal Java objects in aprogram to directly receive external messages anyway. <p>In fact, it logically suffices to have exactly one such object perJava program. This <a href="acceptor.html" tppabs="http://www.foi.hr/~dpavlin/java/mirrors/g.oswego.edu/dl/pats/acceptor.html">Acceptor</a> object canaccept any kind of external message, and then internally relay it toany normal object to perform the indicated action.<p>Single-Acceptor based designs often simplify external namingproblems since only one object needs an external handle.  Forexample, this is how http works.  Machines that can serve httptraffic almost always have a single handle(<code>http://internet.addr:80</code>) corresponding to a singleacceptor object that sometimes relays requests to other internal orexternal helpers (for example replicate daemon processes, CGIs).<p>The Single-Acceptor approach implements a version of a meta-objectdesign. The acceptor serves as a shared meta-object, interpretingmessages and then executing them by dispatching to actions on otherground-level objects. From this perspective, this approach limitsinterprocess communication to interactions among meta-objects, notground objects. This vastly simplifies implementation.  <p>This approach also easily generalizes to designs with some small(perhaps fixed) number of acceptors, not just one.<h3>Handle-passing</h3>First, a trivial-looking but fundamental observation:<blockquote>     To support `open' distributed object systems, objects must be     able to pass handles as values to other objects.</blockquote><p>For example, object A may send a message to object B containing thehandle for object C. After receiving this message, B can communicatedirectly with C since it knows C's handle. This applies even in thetwo-party round-trip case -- Object A needs to send its own handle to object Bfor B to even talk back to it.<p>Another way of saying this is that a handle-based system shouldallow one object X to have a handle allowing it to communicate withanother object Y in only three ways:<ol>  <li> X is `born' knowing the handle for Y.  <li> X itself somehow created Y, thereby assigning or otherwise        knowing  Y's handle.  <li> Some other object passed X the handle to Y.       For example, this other object may be some kind of registry       object that X is born knowing, or perhaps one that       spontaneously sends messages to X.  The registry may maintain       lots of handles, organized in some useful fashion; for example       hierarchically (analogous to Yahoo) or via a searching/matching       service (analogous to Lycos) or whatever.</ol><h3>Limiting Message-Passing</h3>Open systems are great, but sometimes you want or need to ``closeoff'' part of a system for functionality, security, or efficiencyreasons.  There are only a few basic approaches for doing this:<dl>  <dt> Leakage Control  <dd> Disable or restrict one or more of the above three mechanisms       by which objects can know of handles.  <dt> Structured Handles (<em>capabilities</em>)  <dd> With the cooperation of the underlying infrastructure      or per-system design conventions, structure handles themselves      in a way that intrinsically restricts their usage. Such handles      are often termed <em>capabilities</em>. They are an extension of      the notion of an interface reference in Java: A holder may only      invoke operations on a capability that are known by the      infrastructure to be supported.  You can further add ``transfer      rights'' as part of any capability to disallow passing it as an      argument from one machine to another, or even from one Java      method to another. There are lots of specific forms of such      capabilities possible. For example those that contain      originating information, access lists, passwords, tunable      rights-transfers, etc. And several existing standard      implementations to choose among.        <dt> Self-Protection  <dd> Arrange that destination objects need not always accept or act       upon messages sent to them.  Handle-passing is necessary, but       not sufficient for useful communication.  For example, the       destination object may require that senders engage in some kind       of authentication protocol before or while sending normal       messages. Or for a functionality-based example, a destination       object may refuse to perform one method until it has first       performed another; as in an `open' being required before a       `read' of a file.  This approach is in keeping with the OO       design philosophy that each object is responsible for       maintaining its own integrity.  <dt> Interpositioning  <dd> Support only a three-party message passing scheme in which all       messages from X to Y must actually pass through object Z, that       does anything it likes with the messages from X, including       failing to pass them on to Y. This is usually implemented       `transparently' with respect to X and Y; for example, various       `invisible' proxy mechanisms and security agents that may       intervene in addition to the usually-many packet routing       machines between X and Y. </dl>    <h3>Messages</h3>So far, we've described only the handles used for directing messages, not themessages themselves.  Theoretically, the only kind of value you needever send in a message is another handle. (See for example, papersby <a href="javascript:if(confirm('ftp://ftp.cl.cam.ac.uk/users/rm135  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='ftp://ftp.cl.cam.ac.uk/users/rm135'" tppabs="ftp://ftp.cl.cam.ac.uk/users/rm135">Robin Milner</a>.)Everything else (even things like numbers) could in principal bebuilt up using handle-based encoding schemes. But this isn't a verypractical result.<p>A message could consist of anything that is sendable over a connection.Connections are usually set up to transport raw bytes representinganything at all, so the medium itself does not impose much structureon messages. Which means that you need to define or adopt particularformats yourself, and live within them.<p>The usual strategy for setting up distributed object messaging isto use messages of the same form as normal internal Java messages:<pre>methodName(arg1, arg2, ...)</pre>    <p><em>(To be continued ...)</em><p><a href="aopintro.html" tppabs="http://www.foi.hr/~dpavlin/java/mirrors/g.oswego.edu/dl/pats/aopintro.html">[Concurrent Programming in Java]</a><hr><address><A HREF="javascript:if(confirm('http://g.oswego.edu/dl  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://g.oswego.edu/dl'" tppabs="http://g.oswego.edu/dl">Doug Lea</A></address><!-- hhmts start -->Last modified: Tue Feb 20 06:28:59 EST 1996<!-- hhmts end --></body> </html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡av在线免费观看| 91久久国产最好的精华液| 国产成人精品免费看| 色先锋久久av资源部| 精品sm在线观看| 亚洲午夜久久久久久久久电影网| 蜜臀久久99精品久久久久宅男 | 久久色视频免费观看| 亚洲日本一区二区| 国产一区二区伦理片| 欧美日韩不卡在线| 亚洲欧美日韩综合aⅴ视频| 久久精品久久精品| 91精品欧美福利在线观看| 亚洲天堂2014| 国产成人精品影院| 日韩视频一区二区| 日日噜噜夜夜狠狠视频欧美人 | 紧缚捆绑精品一区二区| 在线观看三级视频欧美| 国产精品第13页| 国产精品99精品久久免费| 欧美一区二区网站| 午夜精品爽啪视频| 色吊一区二区三区| 亚洲美女精品一区| av在线一区二区三区| 国产精品视频麻豆| 国产成人在线电影| 久久久噜噜噜久久人人看 | 亚洲一区二区中文在线| www.综合网.com| 国产精品国产自产拍高清av| 国产一区999| 久久―日本道色综合久久| 久久成人免费日本黄色| 日韩一区二区三区视频在线 | 日韩视频国产视频| 日本中文字幕一区二区有限公司| 欧美唯美清纯偷拍| 日本麻豆一区二区三区视频| 欧美高清视频不卡网| 日韩高清一区在线| 日韩三级av在线播放| 精品一区二区成人精品| 久久嫩草精品久久久精品一| 国产在线观看免费一区| 国产视频911| 99久久免费精品| 亚洲一区二区在线免费观看视频| 91国模大尺度私拍在线视频| 亚洲曰韩产成在线| 91精品国产入口| 国产精品1区2区3区在线观看| 国产欧美日韩综合精品一区二区| 成人开心网精品视频| 亚洲色图丝袜美腿| 欧美日韩在线直播| 国产一区二区伦理片| ㊣最新国产の精品bt伙计久久| 91美女片黄在线观看| 亚洲成av人片在线观看无码| 欧美大片在线观看一区| 成人免费毛片app| 亚洲黄色小说网站| 欧美一区二区高清| 粉嫩av一区二区三区粉嫩| 一区二区三区四区五区视频在线观看 | 99精品国产热久久91蜜凸| 亚洲综合激情网| 精品国产1区2区3区| www.欧美日韩| 美女看a上一区| 亚洲视频在线观看三级| 欧美成人精品3d动漫h| 国产二区国产一区在线观看| 亚洲在线视频网站| 欧美国产激情二区三区| 欧美精品久久天天躁| 成人h动漫精品一区二区| 天天操天天色综合| 国产精品乱码妇女bbbb| 日韩一区二区免费高清| av激情成人网| 国产一区二区三区免费播放| 亚洲午夜免费电影| 亚洲欧洲性图库| 26uuu欧美| 欧美高清激情brazzers| 91免费视频网| 国产iv一区二区三区| 日本美女一区二区三区视频| 一区二区日韩电影| 国产精品你懂的| 久久综合久久99| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲成人777| 国产精品福利影院| 中文字幕巨乱亚洲| 日韩欧美亚洲另类制服综合在线| 日本精品视频一区二区| 夫妻av一区二区| 国产精一品亚洲二区在线视频| 亚洲bt欧美bt精品| 亚洲卡通欧美制服中文| 国产精品蜜臀av| 久久色在线视频| 精品久久久久久久久久久久久久久 | 成人性生交大片免费看中文网站| 毛片av中文字幕一区二区| 香蕉影视欧美成人| 亚洲一区二区高清| 一区二区三区在线观看网站| 亚洲免费视频中文字幕| 亚洲欧洲无码一区二区三区| 国产精品区一区二区三| 亚洲欧美一区二区在线观看| 国产精品美女久久久久久久久久久| 久久久青草青青国产亚洲免观| 欧美成人在线直播| 久久香蕉国产线看观看99| 精品久久久久久亚洲综合网| 26uuu国产日韩综合| 精品国产123| 中文字幕第一区二区| 中文字幕成人在线观看| 中文字幕一区二区三中文字幕| 国产精品国产三级国产三级人妇| 中文字幕电影一区| 亚洲欧美激情在线| 午夜精品123| 免费成人美女在线观看| 国产乱子伦视频一区二区三区 | 最新成人av在线| 亚洲另类春色国产| 午夜精品久久久久| 理论电影国产精品| 国产成人99久久亚洲综合精品| av在线不卡电影| 欧美性色aⅴ视频一区日韩精品| 欧美日韩国产影片| 久久综合久久综合九色| 国产精品视频一二三| 亚洲午夜电影网| 精品一区二区免费| 色伊人久久综合中文字幕| 欧美日韩一级黄| 久久综合九色综合欧美亚洲| 中文字幕一区免费在线观看| 午夜久久久影院| 国内精品免费在线观看| 91丨九色丨蝌蚪丨老版| 欧美一区二区精品| 中文一区在线播放| 天堂影院一区二区| 国产成人精品aa毛片| 欧美日韩激情一区二区三区| 久久久久综合网| 午夜a成v人精品| 岛国一区二区三区| 欧美肥大bbwbbw高潮| 中文字幕不卡的av| 日本成人在线网站| 91麻豆免费视频| 久久日一线二线三线suv| 亚洲制服丝袜一区| 成人av在线网站| 日韩欧美国产三级| 亚洲自拍偷拍九九九| 国产91露脸合集magnet| 99精品视频免费在线观看| 日韩欧美中文一区二区| 亚洲色图一区二区三区| 福利电影一区二区三区| 日韩精品一区二区三区中文不卡| 中文字幕一区三区| 国产成人精品一区二| 日韩一区二区三区高清免费看看| 亚洲欧洲www| 国产精品中文字幕一区二区三区| 欧美日韩你懂得| 亚洲人成网站色在线观看| 国产成人免费在线视频| 日韩精品专区在线影院观看| 亚洲欧美另类在线| 国产91色综合久久免费分享| 精品国产乱码久久久久久久| 亚洲国产精品影院| 97久久超碰精品国产| 国产精品色噜噜| 国产美女一区二区| 欧美本精品男人aⅴ天堂| 日本免费在线视频不卡一不卡二 | 日韩欧美精品在线| 日韩专区欧美专区| 538在线一区二区精品国产| 亚洲国产一区在线观看| 欧美午夜精品久久久久久超碰| 亚洲欧美一区二区三区国产精品 | 亚洲色图视频网|