• 静思
  • 吴言片语
    • 吴言
    • 片语
    • 杂七杂八
  • 死于青春
    • 一路走好
  • 乌合麒麟
  • 纪念
    • 5.12
    • 3.23
  • GitHub
    • A List of Post-mortems
    • The Art of Command Line
  • 关于
    • Privacy Policy

程序员的信仰

金鳞岂是池中物,一遇风云便化龙

concurrent

BlockingQueue与InterruptedException

2009 年 11 月 10 日 @ 下午 1:10 by Jay 0 Comment | 被踩了 8,010 脚

感谢Blader同学的抛砖首先,这段代码会编译成功吗,运行起来会有异常吗,他会打印什么?import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue;public class Foo { public static void main(String[] [more...]

Posted in: 技术生活 Tagged: concurrent, java

Java Concurrent框架之阻塞队列(Blocking queue)

2005 年 10 月 11 日 @ 下午 4:56 by Jay 0 Comment | 被踩了 2,245 脚

引子: 大家上过操作系统的都知道“生产者-消费者(Producer-Consumer)”模型,主要讨论的是进程(线程)间的互斥和同步问题,关键是对锁(lock)的申请、独占和释放,在这里我就不罗嗦了。原先我写的Java代码如下: public class Producer extends Thread{ private ProductList products = [more...]

Posted in: 技术生活 Tagged: collection, concurrent, ibm, java, tiger

签儿

borland apple binary tree augmentum 360 adium ccav bt alloy 36kr career cartoon bea 2会 blogspot 80's blockchain avast casio bank amazon aop apache ai air supply 3G bitcoin bootcamp c++ Beijing 58同城 aliyun ad architecture android basketball bv47 bug activex bash algorithm bios .net 911 amq

烫手山芋

  • 生活,就是一个期待跟着一个期待 - 被踩了 21,237 脚
  • 再谈苹果的输入法:这一次是靠OS X自带的输入法来翻身的~ - 被踩了 21,021 脚
  • 星巴克饮品缩写大全(Starbucks Drink ID Codes)[zz] - 被踩了 17,997 脚
  • 有关Character.isLetter()和Character.isLetterOrDigit() - 被踩了 13,474 脚
  • 从一个全角冒号说一下我为什么不感冒iOS - 被踩了 13,393 脚

刚拍的砖

  • leo 发表在《再谈苹果的输入法:这一次是靠OS X自带的输入法来翻身的~》
  • 花 发表在《再谈苹果的输入法:这一次是靠OS X自带的输入法来翻身的~》
  • 无名氏 发表在《从一个全角冒号说一下我为什么不感冒iOS》
  • Jay 发表在《Mac OS geek级问题》
  • Wei Wang 发表在《再谈苹果的输入法:这一次是靠OS X自带的输入法来翻身的~》

随便看看

  • 开始Ubuntu17 年 ago
  • The PEN Story9 年 ago
  • 来一杯美式民主,呵呵4 年 ago
  • 顽主——北京土话追溯之二 [zz]9 年 ago
  • 昨天早上开始暖气停了,春天来了~~20 年 ago

文以类聚

光阴似箭

其他操作

  • 登录
  • 条目 feed
  • 评论 feed
  • WordPress.org

Copyright © 2025 程序员的信仰.

Jay's Omega WordPress Theme by Jay

 

正在加载评论...