E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
PThread
Linux多线程实践(4) --线程特定数据
线程特定数据int
pthread
_key_create(
pthread
_key_t*key,void(*destr_function)(void*)); int
pthread
_key_delete(
pthread
_key_tkey
hanqing280441589
·
2015-02-19 17:00
pthread
tsd
linux多线程
线程特定数据
Linux多线程实践(3) --线程属性
初始化/销毁线程属性int
pthread
_attr_init(
pthread
_attr_t*attr); int
pthread
_attr_destroy(
pthread
_attr_t*attr);线程分离属性
hanqing280441589
·
2015-02-19 16:00
pthread
linux多线程
线程属性
Linux多线程实践(2) --线程基本API
POSIX线程库 与线程有关的函数构成了一个完整的系列,绝大多数函数的名字都是以“
pthread
_”开头,要使用这些函数库,要通过引入头文,而且链接这些线程函数库时要使用编译器命令的“-l
pthread
hanqing280441589
·
2015-02-19 16:00
linux多线程
pthread线程库
echoserver线程版
Linux进程实践(3) --进程终止与exec函数族
(并不完全, 如return/
pthread
_exit等)测试[exit/_exit]//尝试查看该程序的打印输出 intmain() { cout intatex
hanqing280441589
·
2015-02-18 11:00
进程终止
异常终止
exec函数族
system系统调用
syncOnce的Go语言与C++11实现方法
功能与
pthread
_once()差不多。但
pthread
_once()可不通用,不过现在C++11终于有了std::call_once来实现这一功能。
xcltapestry
·
2015-02-16 16:00
go语言
pthread_once
全局唯一性操作
stdcall_once
sync.once
在windows下配置
pthread
Pthread
是由POSIX提出的一套通用的线程库,在linux平台下,他被广泛的支持,而windows平台下,却并不被支持,而
pthread
s-w32为我们提供了解决方案,本文我们准备在我们的windows
弓宇鹏
·
2015-02-16 10:00
C++
Class
cocos2d-x
cocos2d-x3.x
cocostudio
在windows下配置
pthread
Pthread
是由POSIX提出的一套通用的线程库,在linux平台下,他被广泛的支持,而windows平台下,却并不被支持,而
pthread
s-w32为我们提供了解决方案,本文我们准备在我们的windows
弓宇鹏
·
2015-02-16 10:00
C++
Class
cocos2d-x
cocostudio
cocos2d-x3.x
在windows下配置
pthread
Pthread
是由POSIX提出的一套通用的线程库,在linux平台下,他被广泛的支持,而windows平台下,却并不被支持,而
pthread
s-w32为我们提供了解决方案,本文我们准备在我们的windows
弓宇鹏
·
2015-02-16 10:00
C++
Class
cocos2d-x
cocos2d-x3.x
cocostudio
在windows下配置
pthread
Pthread
是由POSIX提出的一套通用的线程库,在linux平台下,他被广泛的支持,而windows平台下,却并不被支持,而
pthread
s-w32为我们提供了解决方案,本文我们准备在我们的windows
弓宇鹏
·
2015-02-16 10:00
C++
Class
cocos2d-x
cocostudio
cocos2d-x3.x
在windows下配置
pthread
Pthread
是由POSIX提出的一套通用的线程库,在linux平台下,他被广泛的支持,而windows平台下,却并不被支持,而
pthread
s-w32为我们提供了解决方案,本文我们准备在我们的windows
弓宇鹏
·
2015-02-16 10:00
C++
Class
cocos2d-x
cocos2d-x3.x
cocostudio
sqlite3 编译问题
sqlite3用到lib
pthread
和libdl因此要链接这两个库假如先把sqlite3.c编译成sqlite3.o或者libsqlite3.ag++-lm-l
pthread
-ldl-o目标main.osqlite3
SUKHOI27SMK
·
2015-02-13 16:00
gcc undefined reference to `
pthread
_create'
写thread出现如下错误:/data0/htdocs/c/lock.c:18:undefinedreferenceto`
pthread
_create'/data0/htdocs/c/lock.c:19
zkaipmoo
·
2015-02-13 11:00
thread
线程
gcc
解决线程的内存泄露的办法
线程创建后,没有调用
pthread
_join或
pthread
_detach会导致内存泄漏。
wangzhen209
·
2015-02-13 09:00
线程
linux
内存泄露
pthread_detach
pthread_join
pthread
_detach
pthread
_detach 创建一个线程默认的状态是joinable,如果一个线程结束运行但没有被join,则它的状态类似于进程中的ZombieProcess,即还有一部分资源没有被回收(退出状态码
wangzhen209
·
2015-02-12 15:00
linux
线程
pthread
apue3源码
/lib-lapue-
pthread
-lrt-lbsdgcc-ansi-I../i
ray604638018
·
2015-02-12 11:30
apue3源码
名不符实的读写锁
于是提出读写锁(Reader/WriterLock),即使是使用了读写锁,其本质也是一样的,而且在POSIX下的
pthread
它的内部实现是基于mutex,所以它的开销更大。如果没有很重的
HorkyChen
·
2015-02-10 17:00
线程
并发
[置顶] linux通用线程池设计I
posix线程常用api
pthread
_create
pthread
_join
pthread
_detach
pthread
_kill
pthread
fallinlovelj
·
2015-02-08 15:00
linux通用线程池
Cocos2d-x 3.x中的多线程基本实现思路
当前正在改写一个基于早期Cocos2d-x2.x实现的小游戏,在涉及到多线程代码时,忽然编译器提示找不到头文件
pthread
.h。
朱先忠老师
·
2015-02-06 12:00
多线程
cocos2d-x
3.x
Cocos2d-x 3.x中的多线程基本实现思路
当前正在改写一个基于早期Cocos2d-x2.x实现的小游戏,在涉及到多线程代码时,忽然编译器提示找不到头文件
pthread
.h。
googlingman
·
2015-02-06 12:00
多线程
Cocos2d-x
3.x
C++/Objective
C
VC中的一些技术
CCriticalSectionm_Lock;//声明 m_Lock.Lock();//使用2、获取实例CWdsrvApp*pApp=(CWdsrvApp*)AfxGetApp();//主实例 CAp
pThread
u012599545
·
2015-02-06 09:00
PHP 真正多线程的使用
PHP5.3以上版本,使用
pthread
sPHP扩展,可以使PHP真正地支持多线程。多线程在处理重复性的循环任务,能够大大缩短程序执行时间。
ljianbing
·
2015-02-05 12:26
多线程
数据库
服务器
操作系统
文章
CWinThread 部分代码
thread in module thread state AFX_MODULE_THREAD_STATE* pState = AfxGetModuleThreadState(); CWinThread*
pThread
lssaint
·
2015-02-05 09:00
mfc
CWinThread
部分代码
gcc编译时指定链接库的查找目录
/bb/cc通过-L/aa/bb/cc 添加到搜索路径中,如: gcc -o xmltest xml_test.cpp -L/home/xxxx/Desktop/xml_test -lmxml -l
pthread
·
2015-02-04 00:00
gcc
apue学习第十九天(2)——线程与信号
thread中的信号处理verysimilarto进程中的信号处理,比如:(1)
pthread
_sigmaskvssigprocmask不过需要注意的是,
pthread
_sigmask失败时直接返回错误码
BlitzSkies
·
2015-01-31 14:00
PHP 真正多线程的使用
原文地址:http://zyan.cc/
pthread
s/ PHP 5.3 以上版本,使用
pthread
s PHP扩展,可以使PHP真正地支持多线程。
wangxiaoxu
·
2015-01-30 13:00
PHP
一个关于nginx网关504的问题
事情要从1月29号下午说起,当时一个同事为给php添加多线程模块
pthread
,将线上php重新编译,结果编译完成后,前端web无法正常访问,页面一直报504错误。
yan_ruo_gu
·
2015-01-30 11:45
504
php-fpm
一个关于nginx网关504的问题
事情要从1月29号下午说起,当时一个同事为给php添加多线程模块
pthread
,将线上php重新编译,结果编译完成后,前端web无法正常访问,页面一直报504错误。
yan_ruo_gu
·
2015-01-30 11:45
504
php-fpm
一个关于nginx网关504的问题
事情要从1月29号下午说起,当时一个同事为给php添加多线程模块
pthread
,将线上php重新编译,结果编译完成后,前端web无法正常访问,页面一直报504错误。
yan_ruo_gu
·
2015-01-30 11:45
php-fpm
504
web应用
Linux线程属性
转自http://blog.chinaunix.net/uid-25940216-id-3212226.html,作者:yulianliu1218一.线程属性 线程具有属性,用
pthread
_attr_t
u012468214
·
2015-01-30 10:00
多线程
linux
操作系统
---用WaitForSingleObject和
pthread
_join
Windows和Linux上分别怎样实现等待某个线程结束呢,我们先看Windows的情形,直接上代码:#include #include DWORDWINAPIFun1Proc(LPVOIDlpParameter) { inti=0; for(i=0;i #include void*threadFunc(void*p) { while(1) { printf("a"); } retur
stpeace
·
2015-01-29 23:00
gcc编译出现undefined reference to '
pthread
_create'的解决方法
:#include #include void*threadFunc(void*p) { while(1) { printf("a"); } returnNULL; } intmain() {
pthread
_tid
stpeace
·
2015-01-29 22:00
基于条件变量阻塞
pthread
_cond_wait
基于条件变量阻塞使用
pthread
_cond_wait(3C) 可以以原子方式释放 mp 所指向的互斥锁,并导致调用线程基于 cv 所指向的条件变量阻塞。
a1232345
·
2015-01-27 14:00
linux
线程
条件变量
pthread
_cond_wait()函数
LINUX环境下多线程编程肯定会遇到需要条件变量的情况,此时必然要使用
pthread
_cond_wait()函数。但这个函数的执行过程比较难于理解。
a1232345
·
2015-01-27 10:00
多线程
linux
NSThread & Run Loop
前言多线程的价值无需赘述,对于App性能和用户体验都有着至关重要的意义,在iOS开发中,Apple提供了不同的技术支持多线程编程,除了跨平台的
pthread
之外,还提供了NSThread、NSOperationQueue
小春0618
·
2015-01-27 09:00
OpenWRT使用wifidog实现强制认证的WIFI热点 | 半个橙子
opkginstallwifidog wifidog依赖下面这些模块:iptables-mod-extraiptables-mod-ipoptkmod-ipt-natiptables-mod-nat-extralib
pthread
·
2015-01-25 21:00
wifi
【Mac OS X/iOS多线程编程】GCD用法学习笔记
OSX和iOS中的并发编程苹果的移动和桌面操作系统中提供了相同的并发编程API,例如
pthread
、
freeWayWalker
·
2015-01-25 16:00
pthread
线程同步
/* * m.cpp * * Created on: 2015年1月23日 * Author: maygolf */ #include <
pthread
.h>
ouyangfeng521
·
2015-01-23 18:00
pthread
Java---21---停止线程
classSto
pThread
implementsRunnable{ privatebooleanflag=true; publi
u013476556
·
2015-01-23 17:00
thread
多线程
同步
synchronized
安全
GDB多线程调试--冰山一角
gdbprogramname24253查看所有线程(gdb)infothreads8Thread0x409f8940(LWP24255)0x0000003535a0d631inrecv()from/lib64/lib
pthread
.so
bamboolsu
·
2015-01-23 12:53
c-c++_gdb_etc
Libevent源码分析-----多线程、锁、条件变量(二)
开启调试功能: 用户只需在调用evthread_use_
pthread
s或者evt
zhwei_87
·
2015-01-22 17:00
linux下的同步与互斥
互斥锁和条件变量包含在
pthread
线程库中,使用时需要包含 头文件。而使用信号量时需要包含头文件。
信息小子
·
2015-01-20 11:55
linux
程序
动态
linux下的同步与互斥
互斥锁和条件变量包含在
pthread
线程库中,使用时需要包含 头文件。而使用信号量时需要包含头文件。
信息小子
·
2015-01-20 11:55
linux
程序
动态
使用 golang 实现类似
pthread
_barrier_t 语义的 barrier 对象
看到golang标准库syncpackageWaitGroup类型,本以为是golang版本的barrier对象实现,看到文档给出的使用示例: var wg sync.WaitGroup var urls = []string{ "http://www.golang.org/", "http://www.google.com/",
yujian0231
·
2015-01-18 23:00
c
linux
线程
pthread
golang
TinyHttp源码解读
在Makefile中,执行编译脚本为:gcc-W-Wall-lsocket-l
pthread
-ohttpdhttpd.c其中
KangRoger
·
2015-01-17 20:00
c
源码
web服务器
tinyhttp
linux下C/C++,多线程
pthread
·线程创建函数原型:int
pthread
_create(
pthread
_t*restricttidp,const
pthread
_attr_t*restrictattr,void*(*start_rtn)
u013243710
·
2015-01-16 20:00
makefile编译一个目录下的文件
1、该目录下所有的文件都单独为可执行程序:CC:=g++ CFLAGS:=\ -m32-ggdb3-pipe-Wall-fPIC-MMD-MP-D_REENTRANT-D_GNU_SOURCE-
pthread
wangfeng2500
·
2015-01-13 17:00
Linux中atfork的使用
#includeint
pthread
_atfork(void(*prepare)(void),void(*parent)(void), void(*child)(void));调用fork时
startFromWeb
·
2015-01-09 16:00
pthread
多线程编程的学习小结
pthread
多线程编程整理 1Introduction不用介绍了吧…2ThreadConcepts1. Thread由下面部分组成:a. ThreadIDb.
tianxiawuzhei
·
2015-01-09 14:00
多线程
linux操作系统崩溃, 如何拷贝其中数据
场景介绍: 由于使用root权限,删除了一个Lib
pthread
.so.
凌虚子
·
2015-01-06 15:00
操作系统
linux线程函数
pthread
_cond_wait
pthread
_cond_signal
pthread
_cond_signal函数的作用是发送一个信号给另外一个正在处于阻塞等待状态的线程,使其脱离阻塞状态,继续执行.如果没有线程处在阻塞等待状态
gx262091291
·
2015-01-06 11:00
上一页
127
128
129
130
131
132
133
134
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他