码迷,mamicode.com
首页 >  
搜索关键字:threads    ( 782个结果
C# 当前程序所有线程
using System.Linq;var threads = System.Diagnostics.Process.GetCurrentProcess().Threads;var count = threads.Count;var actived = threads.Cast().Where(t ...
分类:编程语言   时间:2014-07-14 22:31:10    阅读次数:218
gdb 调试
一、gdb 多线程调试GDB多线程调试的基本命令。1. info threads 显示当前可调试的所有线程,每个线程会有一个GDB为其分配的ID,后面操作线程的时候会用到这个ID。 前面有*的是当前调试的线程。(gdb) info threads 4 Thread 1099119552 (LWP ....
分类:数据库   时间:2014-07-11 22:13:21    阅读次数:355
[原]Threads vs Processes in Linux 分析
Linux中thread (light-weighted process) 跟process在實作上幾乎一樣。最大的差異來自於,thread 會分享 virtual memory address space.a. 從kernel角度看兩者沒差別,在user看來process是least shared...
分类:系统相关   时间:2014-07-11 20:41:54    阅读次数:308
Csharp volatile 关键字
The volatile keyword indicates that a field might be modified by multiple threads that are executing at the same time. Fields that are declared volati...
分类:其他好文   时间:2014-07-10 15:44:40    阅读次数:185
测试我的笔记本能承受多少个线程创建
/**** test how many threads can be created in x86 32 system* * ubuntu 13.0***************************************************************...
分类:编程语言   时间:2014-07-02 21:46:24    阅读次数:178
MariaDB 10之并行复制--延迟测试结果
测试参数:sysbench--test=/root/sysbench0.5/sysbench/tests/db/insert.lua --mysql-table-engine=innodb--oltp-table-size=1000000 --max-requests=0--max-time=300--num-threads=16 --oltp-tables-count=10--report-interval=10 --mysql-host=10.8.8.100--mysql-port=3312--..
分类:数据库   时间:2014-07-02 06:44:36    阅读次数:280
《软件调试的艺术》笔记--调试多线程程序
下面是于线程相关的GDB命令用法汇总: info threads:给出关于当前所有线程的信息。 thread 3:改成线程3. break 88 thread 3 :当线程到达源代码88时停止执行。 break 88 thread 3 if i == 2 当线程3到达源代码行88行,并且变量i的值为2时停止执行。 对下面的多线程进行调试: #include #include ...
分类:编程语言   时间:2014-06-22 07:31:50    阅读次数:310
Starting Threads and Using Anonymous Classes
As we all know,a thread is a separate process on your computer.you can run multiple threads all at the same time. multi-threaded code has the disadvantage of becoming quite complex very quickly,altho...
分类:其他好文   时间:2014-06-22 07:25:06    阅读次数:244
UML的基础元件之架构元件(三)
Structural Things An active class is a class whose objects own one or more processes or threads and therefore can initiate control activity. An active class is just like a class except that it...
分类:其他好文   时间:2014-06-17 22:44:27    阅读次数:310
自旋锁和互斥锁区别
http://blog.csdn.net/kyokowl/article/details/6294341 POSIX threads(简称Pthreads)是在多核平台上进行并行编程的一套常用的API。线程同步(Thread Synchronization)是并行编程中非常重要的通讯手段,其中最典型的应用就是用Pthreads提供的锁机制(lock)来对多个线程之间共 享的临界区(C...
分类:其他好文   时间:2014-06-15 17:31:12    阅读次数:167
782条   上一页 1 ... 74 75 76 77 78 79 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!