码迷,mamicode.com
首页 >  
搜索关键字:threads    ( 782个结果
Java知多少(59)创建多线程
到目前为止,我们仅用到两个线程:主线程和一个子线程。然而,你的程序可以创建所需的更多线程。例如,下面的程序创建了三个子线程: 1 // Create multiple threads. 2 class NewThread implements Runnable { 3 String name...
分类:编程语言   时间:2015-05-11 08:50:03    阅读次数:161
Windows Serial Port Programming in C.
Similar with the linux version , this article would demonstrate how to write a simple windows .     I divide the 2 operations : write and read into 2 threads. Of course, one could call ReadFile a...
分类:Windows程序   时间:2015-05-09 15:02:11    阅读次数:199
【转】进程与线程的一个简单解释
原文连接:http://www.ruanyifeng.com/blog/2013/04/processes_and_threads.html进程(process)和线程(thread)是操作系统的基本概念,但是它们比较抽象,不容易掌握。最近,我读到一篇材料,发现有一个很好的类比,可以把它们解释地清晰...
分类:编程语言   时间:2015-05-08 17:59:39    阅读次数:118
Java并发的四种风味:Thread、Executor、ForkJoin和Actor
这篇文章讨论了Java应用中并行处理的多种方法。从自己管理Java线程,到各种更好几的解决方法,Executor服务、ForkJoin 框架以及计算中的Actor模型。Java并发编程的4种风格:Threads,Executors,ForkJoin和Actors我们生活在一个事情并行发生的世界。自然...
分类:编程语言   时间:2015-05-08 12:31:09    阅读次数:173
Object.notifyAll()
void java.lang.Object.notifyAll()Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be ....
分类:其他好文   时间:2015-05-07 14:03:01    阅读次数:100
【高级java程序员应该知道的小知识】 volatile
本篇态度:stupid&simplevolatile用法:private volatile Service.STATE state;优点: 比其他的锁机制(synchronized、lock)简单; 不阻塞; 对volatile修饰的变量允许并发读. 谨记: Java Memory Model ensures that all threads see a consistent value for...
分类:编程语言   时间:2015-05-06 09:17:28    阅读次数:142
DNS之一:编译安装
1.添加named用户和用户组 groupadd-rnamed useradd-r-M-s/bin/nologin-gnamednamed 2.编译安装(提前安装gcc) tarxfbind-9.9.2.tar.gz cdbind-9.9.2 ./configure--prefix=/usr/local/bind98--enable-threads--enable-epoll--disable-chroot 3.建立配置文件/usr/local/bind98/e..
分类:其他好文   时间:2015-05-04 20:27:07    阅读次数:210
Latest SQLite binary for January 2015
Latest SQLite binary for January 2015Well I went through quite a few threads to find an updated, decent sqlite binary. Didn't find any that met that c...
分类:数据库   时间:2015-05-01 00:33:10    阅读次数:212
Worker Thread
http://www.codeproject.com/Articles/552/Using-Worker-ThreadsIntroductionWorker threads are an elegant solution to a number of problems about concurren...
分类:其他好文   时间:2015-04-30 17:53:40    阅读次数:93
python greenlet
greenlet: Lightweight concurrent programming Motivation The “greenlet” package is a spin-off of Stackless, a version of CPython that supports micro-threads called “tasklets”. Tasklets run pseu...
分类:编程语言   时间:2015-04-26 19:50:44    阅读次数:169
782条   上一页 1 ... 59 60 61 62 63 ... 79 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!