码迷,mamicode.com
首页 >  
搜索关键字:threads    ( 782个结果
【转】gtk+多线程的程序实例
#include <gtk/gtk.h> gint test() { while(1) { gdk_threads_enter(); g_printf("hello\n"); gdk_threads_leave(); }; return TRUE; } gint timeout_callback( ...
分类:编程语言   时间:2016-10-22 17:41:59    阅读次数:263
java多线程编程之CountDownLatch
java.util.concurrent.CountDownLatch这个类里面的主要方法为: 1.countDown(),Decrements the count of the latch, releasing all waiting threads if the count reaches ze ...
分类:编程语言   时间:2016-10-19 19:10:02    阅读次数:192
QThread 与 QObject的关系?
Threads and QObjects QThread 继承 QObject.。它可以发送started和finished信号,也提供了一些slot函数。 QObject.可以用于多线程,可以发送信号调用存在于其他线程的slot函数,也可以postevent给其他线程中的对象。之所以可以这样做,是 ...
分类:其他好文   时间:2016-10-19 16:46:30    阅读次数:252
线程,进程
1.线程 event An event is a simple synchronization object the event represents an internal flag,and threads can wait for the flag to set ,or set or clear ...
分类:编程语言   时间:2016-10-19 02:54:52    阅读次数:206
条件变量pthread_cond_t怎么用
编译: [X61@horizon threads]$ gcc thread_cond.c -lpthread -o tcd 以下是程序运行结果: [X61@horizon threads]$ ./tcd thread1: lock 30thread1: unlock 40thread2: lock ...
分类:其他好文   时间:2016-10-13 18:53:06    阅读次数:164
Looper
/** * Class used to run a message loop for a thread. Threads by default do * not have a message loop associated with them; to create one, call * {@lin ...
分类:其他好文   时间:2016-10-11 18:43:31    阅读次数:156
cuda中thread id
一个grid包含多个blocks,这些blocks的组织方式可以是一维,二维或者三维。任何一个block包含有多个Threads,这些Threads的组织方式也可以是一维,二维或者三维。举例来讲:比如上图中,任何一个block中有10个Thread,那么,Block(0,0)的第一个Thread的T ...
分类:其他好文   时间:2016-10-07 17:44:06    阅读次数:192
CUDA入门1
1GPUs can handle thousands of concurrent threads. 2The pieces of code running on the gpu are called kernels 3A kernel is executed by a set of threads. ...
分类:其他好文   时间:2016-10-05 00:44:57    阅读次数:151
C3P0数据库连接池的相关bug解决
数据库连接池的几个常见bug: 1.警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@76c7022e -- APPARENT DEADLOCK!!! Creating emergency threads f ...
分类:数据库   时间:2016-10-01 19:56:10    阅读次数:692
day9---多线程,线程锁,队列
进程、线程http://www.ruanyifeng.com/blog/2013/04/processes_and_threads.html使用threading模块实现多线程编程[综述]Python这门解释性语言也有专门的线程模型,Python虚拟机使用GIL(GlobalInterpreterLock,全局解释器锁)来互斥线程对共享资源的访问,但暂时无法利用多处..
分类:编程语言   时间:2016-09-23 00:03:07    阅读次数:203
782条   上一页 1 ... 37 38 39 40 41 ... 79 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!