Sun River
          Topics about Java SE, Servlet/JSP, JDBC, MultiThread, UML, Design Pattern, CSS, JavaScript, Maven, JBoss, Tomcat, ...
          posts - 78,comments - 0,trackbacks - 0
          <2006年10月>
          24252627282930
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章檔案

          相冊

          收藏夾

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 27421
          • 排名 - 1462

          最新評論

          閱讀排行榜

          評論排行榜

          Identify which attribute scopes are thread-safe:
          1. Local variables Yes, thread-safe
          2. Instance variables
          3. Not thread-safe
            Since a single servlet instance may be handling multiple service requests at any given time.
          4. Class variables
          5. Not thread-safe
            Since multiple servlets and /or service requests may try to access a class variable concurrently.
          6. Request attributes
          7. Yes, thread-safe
            Since the request object is a local variable
          8. Session attributes
          9. Not thread-safe
            Since sessions are scoped at the web application level, hence the same session object can be accessed concurrently by multiple servlets and their service requests
          10. Context attributes
          11. Not thread-safe
            Since the same context object can be accessed concurrently by multiple servlets and their service requests
          posted on 2006-10-08 12:41 Sun River 閱讀(258) 評論(0)  編輯  收藏 所屬分類: Servlet & Jsp
          主站蜘蛛池模板: 炉霍县| 庆城县| 松滋市| 全州县| 常州市| 巫山县| 股票| 天门市| 隆化县| 江门市| 依兰县| 罗江县| 新余市| 河源市| 昌江| 五原县| 新乐市| 侯马市| 石楼县| 清河县| 昌江| 堆龙德庆县| 镶黄旗| 武威市| 贞丰县| 上虞市| 昌平区| 荥经县| 徐闻县| 顺昌县| 策勒县| 乐昌市| 隆化县| 万盛区| 本溪| 金湖县| 广东省| 黔西县| 乳山市| 营山县| 巴里|