<dd id="sga4y"><optgroup id="sga4y"></optgroup></dd>
<nav id="sga4y"><code id="sga4y"></code></nav>
  • <optgroup id="sga4y"></optgroup>

    J2EE Bad Practices: Threads

    ABSTRACT

    禁止在某些環境下使用 Web 應用程序中的線程管理,因為此時使用線程管理非常容易出錯。

    EXPLANATION

    J2EE 標準禁止在某些環境下使用 Web 應用程序中的線程管理,因為此時使用線程管理非常容易出錯。線程管理起來很困難,并且可能還會以不可預知的方式干擾應用程序容器。即使容器沒有受到干擾,線程管理通常還會導致各種難以發現的錯誤,如死鎖、race condition 及其他同步錯誤等。

    REFERENCES

    [1] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 383

    [2] Java 2 Platform Enterprise Edition Specification, v1.4 Sun Microsystems


    Copyright 2013 Fortify Software - All rights reserved.
    (Generated from version 2013.1.1.0008 of the Fortify Secure Coding Rulepacks)
    desc.semantic.java.j2ee_badpractices_threads

    97av