码迷,mamicode.com
首页 >  
搜索关键字:Future    ( 1492个结果
temp
Please let me know if you want the remaining 70 Transactions (182-112) on Future value date ('Adj. Settle Date') to be input today at one go or on eac...
分类:其他好文   时间:2015-04-29 16:41:59    阅读次数:137
Java多线程与并发应用-(8)-Callable和Future
demo1: 使用FutureTask和Callable,获取一个线程的返回值。在获取返回值前可以做其他事,在Future.get()时阻塞,也可调用 get(long timeout, TimeUnit unit)方法设置在等待long时间后如果还没有返回值抛出异常。 package com.lipeng; import java.util.concurrent.Callable; i...
分类:编程语言   时间:2015-04-29 00:43:25    阅读次数:140
新手浅谈Future
Future到底是什么东西?很多人都对这个东西感到特别奇怪(好吧,我承认,那个很多人就只是我自己而已),就我现在的理解,因为本人在并发这方面没有 多少实践经验,所以只好就着一些资料和自己的理解给它下个定义,Future就是保存我们任务的完成信息,比如说,任务中会通过返回某些东西告诉别人它已 经结束了...
分类:其他好文   时间:2015-04-23 19:11:41    阅读次数:172
Python.tornado.2-tornado.options
记录Tornado-4.0.2源码的阅读,学习,分析options.py1. imports 部分1.1 __future__1 from __future__ import absolute_import, division, print_function, with_statementfutur...
分类:编程语言   时间:2015-04-23 17:22:25    阅读次数:228
with as 用法
with从Python 2.5就有,需要from __future__ import with_statement。自python 2.6开始,成为默认关键字。在What's new in python2.6/3.0中,明确提到:The ‘with‘ statement is a control-f...
分类:其他好文   时间:2015-04-23 17:18:18    阅读次数:153
【转载】Pyqt 编写的俄罗斯方块
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 from __future__ import print_function 4 from __future__ import unicode_literals 5 from __fut...
分类:其他好文   时间:2015-04-23 15:32:25    阅读次数:257
【转】C++11 并发指南五(std::condition_variable 详解)
http://www.cnblogs.com/haippy/p/3252041.html前面三讲《C++11 并发指南二(std::thread 详解)》,《C++11 并发指南三(std::mutex 详解)》分别介绍了 std::thread,std::mutex,std::future 等相关...
分类:编程语言   时间:2015-04-22 13:03:40    阅读次数:284
XiaoKL学Python(C)__future__
__future__ in Python1. from __future__ import xxxx这是为了在低版本的python中使用可能在某个高版本python中成为语言标准的特性,从而在将代码由低版本迁移到高版本的过程中,减少需要做的工作。这种语句被称为future_statement2. f...
分类:编程语言   时间:2015-04-22 01:56:21    阅读次数:195
Pyqt 时时CPU使用情况
借鉴代码来自:https://github.com/hgoldfish/quickpanel实现代码: 1 # -*- coding:utf-8 -*- 2 from __future__ import print_function 3 from __future__ import unico...
分类:其他好文   时间:2015-04-20 12:36:54    阅读次数:218
Java 并发编程 Executor
Executor框架是指java 5中引入的一系列并发库中与executor相关的一些功能类,其中包括线程池,Executor,Executors,ExecutorService,CompletionService,Future,Callable等。他们的关系为:并发编程的一种编程方式是把任务拆分为...
分类:编程语言   时间:2015-04-20 00:22:08    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!