<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Java 多線程的發展和主題 > 原文: [https://howtodoinjava.com/java/multi-threading/java-multi-threading-evolution-and-topics/](https://howtodoinjava.com/java/multi-threading/java-multi-threading-evolution-and-topics/) 我們的一位讀者 Anant 提出了一個非常好的問題,詳細闡述/列出了我們應該了解的有關多線程的所有相關主題,包括在 Java 8 中所做的更改(從入門級到高級)。 他想知道的就是 Java 中的多線程框架從簡單的`Runnable`接口到 Java 8 的最新特性的演變。讓我們解決他的查詢。 我花了大量時間收集以下所有信息。 因此,如果您在任何時候有其他疑問,請隨時建議在以下信息中進行編輯/更新。 ## 每個 JDK 發行版的多線程概念 根據 [**JDK 1.x 發行版**](https://www.cs.princeton.edu/courses/archive/fall97/cs461/jdkdocs/),在此初始發行版中僅存在很少的類。 具體來說,這些類/接口是: * `java.lang.Thread` * `java.lang.ThreadGroup` * `java.lang.Runnable` * `java.lang.Process` * `java.lang.ThreadDeath` * 和一些異常類 例如 1. `java.lang.IllegalMonitorStateException` 2. `java.lang.IllegalStateException` 3. `java.lang.IllegalThreadStateException`。 它還有很少的同步集合,例如 `java.util.Hashtable`。 **JDK 1.2** 和 **JDK 1.3** 沒有與多線程相關的明顯變化。 (如果我錯過任何事情,請糾正我)。 **JDK 1.4** ,幾乎沒有 JVM 級別更改,可以通過一次調用掛起/恢復多個線程。 但是沒有出現重大的 API 更改。 [**JDK 1.5**](https://docs.oracle.com/javase/1.5.0/docs/guide/concurrency/overview.html) 是 JDK 1.x 之后的第一個大版本; 它包括多個并發工具。 `Executor`,`semaphore`,`mutex`,`barrier`,`latches`,`concurrent collections`和`blocking queues`; 所有內容均包含在此版本本身中。 Java 多線程應用程序云的最大變化發生在此版本中。 > 閱讀此鏈接中的全部更改: [http://docs.oracle.com/javase/1.5.0/docs/guide/concurrency/overview.html](https://docs.oracle.com/javase/1.5.0/docs/guide/concurrency/overview.html) **JDK 1.6** 更多的是平臺修復,而不是 API 升級。 因此,JDK 1.6 中出現了新變化。 [**JDK 1.7**](https://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/changes7.html) 添加了對`ForkJoinPool`的支持,該支持實現了**工作竊聽技術**以使吞吐量最大化。 還添加了`Phaser`類。 [**JDK 1.8**](https://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/changes8.html) 因 Lambda 更改而廣為人知,但并發更改也很少。 在`java.util.concurrent`包中添加了兩個新接口和四個新類。 `CompletableFuture`和`CompletionException`。 集合框架在 Java 8 中進行了重大修訂,以基于新添加的**流工具**和 **lambda 表達式**添加聚合操作; 導致在幾乎所有`Collection`類中以及在并發集合中添加了大量方法。 > 閱讀此鏈接中的全部更改: [http://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/changes8.html](https://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/changes8.html) #### 參考文獻: * [https://www.cs.princeton.edu/courses/archive/fall97/cs461/jdkdocs/relnotes/intro.html](https://www.cs.princeton.edu/courses/archive/fall97/cs461/jdkdocs/relnotes/intro.html) * [http://programmers.stackexchange.com/questions/147205/what-were-the-core-api-packages-of-java-1-0](https://programmers.stackexchange.com/questions/147205/what-were-the-core-api-packages-of-java-1-0) * [http://docs.oracle.com/javase/1.5.0/docs/guide/concurrency/overview.html](https://docs.oracle.com/javase/1.5.0/docs/guide/concurrency/overview.html) * [http://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/changes7.html](https://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/changes7.html) * [http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html](http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html) * [http://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/changes8.html](https://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/changes8.html) 我希望上面的清單可以幫助您理解**多線程特性(每個 JDK 版本**)。 學習愉快!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看