ju5t1nhhh
V2EX  ›  Java

为什么没有 ArrayBlockingDeque?

  •  
  •   ju5t1nhhh · Mar 18, 2018 · 3346 views
    This topic created in 2993 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   ·   3551 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:33 · PVG 18:33 · LAX 03:33 · JFK 06:33
    ♥ Do have faith in what you're doing.