生产者-消费者模型是多线程问题里面的经典问题,也是面试的常见问题。有如下几个常见的实现方法:1.
wait()/notify()2. lock & condition3. BlockingQueue下面来逐一分析。1.
wait()/notify()第一种实现,利用根类Object的两个方法wait...
分类:
编程语言 时间:
2014-06-16 09:37:57
阅读次数:
314
class Solution {private: const static char*
pattern[]; const static char* roman_digit[];public: string intToRoman(int num) {
if (num ...
分类:
其他好文 时间:
2014-06-16 07:04:22
阅读次数:
171
int n , a[100] , p[100];void prime2(){ memset(a , 0
, n * sizeof(a[0])) ; //初始都为素数 int num = 0 , i , j ; for( i =2 ; i <= n ;
i++){ ...
分类:
其他好文 时间:
2014-06-16 00:39:33
阅读次数:
239
select a.vendor_number 供应商编码 ,a.vendor_name
供应商名称 ,a.item_number 物料编码 ,a.item_description 物料描述 ,a.po_number 采购订单号
,a.receipt_num 收据号 ,a.transaction_.....
分类:
数据库 时间:
2014-06-12 15:16:15
阅读次数:
392
select msi.segment1 编码 ,msi.description 描述
,mr.old_order_quantity数量 ,mipo.po_number 请购单 ,mipo.purch_line_num 订单栏
,pv.vendor_name 供应商 ,ppf.last_name .....
分类:
数据库 时间:
2014-06-12 14:25:21
阅读次数:
378
select msi.segment1 编码 ,msi.description 描述
,mr.old_order_quantity 数量 ,mr.old_schedule_date 订单需求日期 ,mipo.po_number 订单号
,mipo.purch_line_num 订单栏 ,pv....
分类:
数据库 时间:
2014-06-12 12:10:56
阅读次数:
381
The following scripts can be used to check for
huge line numbers:-- PO Requisitionsselect * from PO_REQUISITION_LINES_ALL where
LINE_NUM > 1000000000;...
分类:
数据库 时间:
2014-06-12 09:41:27
阅读次数:
295