码迷,mamicode.com
首页 >  
搜索关键字:pthread    ( 1177个结果
临界区的同步操作-------------使用信号量 实现
同步模型: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <semaphore.h> //#define EXIT_SUCCESS 0 //#define EXIT_FAI ...
分类:其他好文   时间:2020-09-17 16:44:25    阅读次数:26
锁和数据打包
#include "common.h" static pthread_t thread_miccapture; static pthread_t thread_audioplay; static int pthread_run = 0; static pthread_t thread_main; s ...
分类:其他好文   时间:2020-08-26 18:48:05    阅读次数:49
找工作的你不容错过的45个PHP面试题附答案(下篇)
找工作的你不容错过的45个PHP面试题附答案(上篇) Q28:你将如何使用PHP创建Singleton类? /** * Singleton class * */ final class UserFactory { /** * Call this method to get singleton * * ...
分类:Web程序   时间:2020-08-03 17:23:52    阅读次数:106
gogs 发送邮件通知的程序
这是几年以前,写的一个用于 gogs 服务进行推送通知到邮件的程序。那时候还不会写GO程序,于是用C++写的,麻烦得很。用GO来写同样的程序要省事多了。 代码 #include <Poco/Net/HTTPServer.h> #include <Poco/Net/HTTPRequestHandler ...
分类:其他好文   时间:2020-07-24 21:41:25    阅读次数:84
sqlplus: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
在Zabbix Server服务器上安装oracle-instantclient11.2后,结果使用sqlplus命令时遇到“sqlplus: error while loading shared libraries: libnsl.so.1: cannot open shared object f... ...
分类:数据库   时间:2020-07-23 23:19:25    阅读次数:107
Linux 线程传递参数
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <pthread.h> 4 #include <unistd.h> 5 6 #define NUM_THREADS 8 7 8 void *PrintHello(void *args) 9 { ...
分类:编程语言   时间:2020-07-13 09:48:34    阅读次数:73
guard
#include "1.h"#include "pthread.h"static pthread_mutex_t __guard_mutex;static pthread_once_t __once_control = PTHREAD_ONCE_INIT;static void makeRecusi ...
分类:其他好文   时间:2020-07-09 13:46:07    阅读次数:86
python2.7.5
./configure --prefix=/usr/local/python2.7.5 gcc -pthread -Xlinker -export-dynamic -o python \ Modules/python.o \ libpython2.7.a -lpthread -ldl -lutil ...
分类:编程语言   时间:2020-06-28 12:32:55    阅读次数:95
进入MySQL大门的地方。学习开始,JSP语言都是需要main方法作为主入口
摘要 这个官方文档一段对MySQL内核分析的一个向导。是对MySQL一条insert语句写入到MySQL数据库的分析。但是,对于MySQL 5.7版本来说,基本上都是写入到innodb引擎。但也还是有借鉴意义,大的框架没有太大变化。后面的文档,会通过mysqld --debug 和gdb等工具,通过 ...
分类:数据库   时间:2020-06-26 00:59:23    阅读次数:152
Windows下JetBrains CLion的pthread使用配置
Windows下JetBrains CLion的C/C++的pthread库使用配置 ...
分类:Windows程序   时间:2020-06-24 14:16:07    阅读次数:107
1177条   上一页 1 2 3 4 5 ... 118 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!