码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
android-annotations使用入门
androidannotation是一个非常牛逼的框架(https://github.com/excilys/androidannotations/wiki),可以做到:依赖注入(Dependency Injection),简化的线程模型(Simplified  threading model),事件绑定(Event binding),REST Client。 非常好用,更重要的是它对性能无影响...
分类:移动开发   时间:2014-11-28 16:17:05    阅读次数:275
【python,threading】python多线程
使用多线程的方式1、函数式:使用threading模块threading.Thread(e.g target name parameters) 1 import time,threading 2 def loop(): 3 print("thread %s is running..." % ...
分类:编程语言   时间:2014-11-28 16:02:20    阅读次数:267
Parallel.ForEach , ThreadPool.QueueUserWorkItem
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using System.Threading.Task....
分类:其他好文   时间:2014-11-26 18:26:57    阅读次数:186
创建一个实例&创建一个线程。。
1 using System; 2 using System.Threading; 3 4 5 namespace WorkerThread02 6 { 7 class ThreadTest 8 { 9 bool done;10 static v...
分类:编程语言   时间:2014-11-26 18:09:39    阅读次数:203
Ajax长轮询
前台代码: 请等待...... View Code后台代码:using System;using System.Threading;namespace Web监听{ public par...
分类:Web程序   时间:2014-11-26 13:56:52    阅读次数:206
基于事件的异步模式概述
基于事件的异步模式概述MSDN那些同时执行多项任务、但仍能响应用户交互的应用程序通常需要实施一种使用多线程的设计方案。System.Threading命名空间提供了创建高性能多线程应用程序所必需的所有工具,但要想有效地使用这些工具,需要有丰富的使用多线程软件工程的经验。对于相对简单的多线程应用程序,...
分类:其他好文   时间:2014-11-25 09:14:29    阅读次数:220
求一元二次方程
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(st...
分类:其他好文   时间:2014-11-24 10:13:03    阅读次数:103
读写锁学习(1)——ReaderWriterLock学习
读写锁的目的:将读和写分离,可以实现多个用户的读操作,但是写操作只能有一个用户执行。实例:using System;using System.Threading;namespace ProcessTest{ class Program { static int theRes...
分类:其他好文   时间:2014-11-21 18:24:10    阅读次数:199
读写锁学习(3)——微软源码实现的阅读
一下是微软源码:using System;using System.Runtime;using System.Runtime.CompilerServices;using System.Security.Permissions;using System.Threading;namespace Mic...
分类:其他好文   时间:2014-11-21 18:21:23    阅读次数:267
读写锁学习(2)——ReaderWriterLock学习
using System.Collections.Generic;using System.Threading;namespace FYSTest{ public partial class MainWindow { List list = new List(); ...
分类:其他好文   时间:2014-11-21 18:09:18    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!