码迷,mamicode.com
首页 >  
搜索关键字:rt thread    ( 14779个结果)
线程中传递参数
static void Main(string[] args) { ParameterizedThreadStart doWork = new ParameterizedThreadStart(getMethod); Thread th = new Thread(d...
分类:编程语言   时间:2014-09-25 22:21:07    阅读次数:174
java入门常识整理
1.异常类型:Exceptionin thread "main" java.lang.NoClassDefFoundError:HelloWorld.----通常是设置了不必要且不正确的CLASSPATH导致的2.java特点: 1.既有编译型语言的特点,又有解释性语言的特点;2.自动垃圾回收机制....
分类:编程语言   时间:2014-09-25 21:25:57    阅读次数:279
多线程编程 之 入门篇
自己第一次涉及c语言的多线程编程,实属入门了解级别的;之前只做过java的Runnable的多线程编程。本次我们可以把屏幕看成是一个资源,这个资源被两个线程所共用, /* #include #include using namespace std; DWORD WINAPI Fun(LPVOID lpParamter) { while(1) { ...
分类:编程语言   时间:2014-09-25 20:36:07    阅读次数:282
java 线程sleep方法
public static void main(String[] args) {Runner1 r1 = new Runner1();Thread t = new Thread(r1);t.start();try {Thread.sleep(10000);} catch (InterruptedEx...
分类:编程语言   时间:2014-09-25 20:16:17    阅读次数:168
使用swoole扩展开发PHP全异步代理服务器
1, //select and epoll_wait timeout. 'poll_thread_num' => 1, //reactor thread num 'worker_num' => 1, //reactor thread num ...
分类:Web程序   时间:2014-09-25 20:10:08    阅读次数:268
Win7 64位 php-5.5.13+Apache 2.4.9+mysql-5.6.19 配置
一:准备阶段1:phpphp-5.5.13下载链接:http://windows.php.net/downloads/releases/php-5.5.13-Win32-VC11-x64.zip推荐 Thread Safe(线程安全)V11 x64,也就是64bit的。现在PHP官网上下载PHP安装...
分类:数据库   时间:2014-09-25 20:07:37    阅读次数:327
java 线程1
public static void main(String[] args) {Runner1 r1 = new Runner1();Thread t = new Thread(r1);t.start();for (int i = 0; i "+i);}}//Runner1实现Runable接口cl...
分类:编程语言   时间:2014-09-25 19:12:07    阅读次数:163
2线程原语:pthread_create(),pthread_self(),pthread_exit(),pthread_join(),pthread_cancel(),pthread_detach(
?? 1  pthread_create()函数 创建线程 A:依赖的头文件 #include B:函数声明 int pthread_create(pthread_t *thread, constpthread_attr_t *attr, void *(*start_routine) (void *), void *arg); pthread_t ...
分类:编程语言   时间:2014-09-25 19:01:47    阅读次数:290
(转)临界区,互斥量,信号量,事件的区别(线程同步)
(转)临界区,互斥量,信号量,事件的区别(线程同步) 分类: C++ windows 核心编程 2012-04-10 14:55 2064人阅读 评论(0) 收藏 举报 semaphore mfc null events thread http服务器 四种进程或线程同步互斥的控制方...
分类:编程语言   时间:2014-09-25 16:40:39    阅读次数:190
gcc链接g++编译生成的静态库和动态库的makefile示例
使用c++开发程序或者库时,将库提供给其他人使用。然而使用者是使用c开发的程序,链接g++编译生成的库时,于链接gcc生成的库,有所不同。首先是静态库,以链接g++编译生成的libmylib.a为例子mylib依赖于pthread,rt,math库,链接时必须放在mylib之后。同时-Wl,--no...
分类:其他好文   时间:2014-09-25 15:13:09    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!