ju5t1nhhh
V2EX  ›  Java

为什么没有 ArrayBlockingDeque?

  •  
  •   ju5t1nhhh · Mar 18, 2018 · 3311 views
    This topic created in 2984 days ago, the information mentioned may be changed or developed.

    最近看 Java 集合源码时发现一个问题: 对于双端队列,既然有用循环实现的 ArrayDeque,那为什么在实现阻塞的时候没有 ArrayBlockingDeque 呢?而反而单端队列的 Queue,ArrayQueue 和 ArrayBlockingQueue 都实现好了呢。

    2 replies    2019-04-30 00:02:08 +08:00
    mightofcode
        2
    mightofcode  
       Apr 30, 2019
    这是个很好的问题,我觉得。。。可以有
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   977 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:22 · PVG 04:22 · LAX 13:22 · JFK 16:22
    ♥ Do have faith in what you're doing.