腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(7509)
视频
沙龙
2
回答
线程化程序和结构将值更改为垃圾桶
c
、
multithreading
、
struct
、
return-value
如果这有点不完整,我很抱歉,我已经在网上搜索了几个小时了,我所做的一切似乎都是正确的,但是当我通过
pthread_create
函数传递一些临界值时,我得到了垃圾插入。 gWorker[i].connection = i;
pthread_create
浏览 2
提问于2013-02-01
得票数 0
回答已采纳
1
回答
pthread_create
分段故障(缓冲读取器示例)
c
、
linux
、
multithreading
full);} pthread_t *thread = malloc(sizeof(pthread_t));} pthread_t *thread = malloc(sizeof(pthread_t)); if(
pthread_create
浏览 2
提问于2016-03-08
得票数 0
回答已采纳
1
回答
通过pthread_join()连接两个线程不像预期的那样工作
c
、
linux
、
multithreading
、
pthreads
我正在通过
pthread_create
()创建两个不同的
pthread_create
(),并通过调用pthread_join()等待它们退出。\n"); if (rT1 !\n"); if (
浏览 0
提问于2018-04-26
得票数 0
回答已采纳
2
回答
pthread_join导致分割错误(简单程序)
c
、
multithreading
、
segmentation-fault
、
pthreads
、
pthread-join
thread\n");} pthread_t p1;
pthread_create
浏览 1
提问于2013-04-18
得票数 1
回答已采纳
1
回答
在单个程序中使用消息队列和多线程的messenger
c
、
linux
、
pthreads
、
message
我正试图使用消息队列和线程在Linux中编写一个信使程序。user1) ./msg 4321 1234 // snd_key: 4321, rcv_key: 1234 然后创建两个消息队列:一个用于发送,另一个用于接收消息。然后启动一个线程来运行发送方(),以类似的方式传入&snd_queue作为参数和接收者。然后,我使用pthread_joing等待两个子线程,然后释放两个消息队列,从而完成了程序。 问题是,通过使用
浏览 8
提问于2020-04-06
得票数 0
1
回答
“执行测试CMAKE_HAVE_LIBC_PTHREAD失败”到底是什么意思?
cmake
、
pthreads
cmake部分输出如下所示:-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
浏览 3
提问于2020-10-24
得票数 23
回答已采纳
2
回答
读取成员时线程化Segfault
c++
、
multithreading
、
class
wire termometer device path: " << path << std::endl;{ if(
pthread_create
浏览 2
提问于2015-06-08
得票数 0
1
回答
使用pthread进行并行编程
c
、
pthreads
for (j = 0; j < MAX; j++) { }
pthread_create
(&threads[t], NULL, addition, (void *)&item);} 在这里,到目前为止,我还没有在函数addition()中添加数组的加法,因为在
pthread_create
谁能告诉我如何将structure变量复制到
pthread_c
浏览 10
提问于2017-12-30
得票数 1
1
回答
用C问题创建多个线程
c
、
multithreading
、
pthreads
thread2; pthread_t thread4; pthread_t thread6;
pthread_create
(&thread2, NULL, thread_2, NULL);
浏览 1
提问于2016-10-17
得票数 1
回答已采纳
1
回答
多线程代码不可理解的结果
c
、
multithreading
、
pthreads
、
mutex
(&firstThread, NULL, PrintThread1(), NULL); printf("ERROR; return code from
pthread_create
() is %d\n", ft); } if (ft){ printf("ERROR; re
浏览 1
提问于2015-03-20
得票数 0
回答已采纳
1
回答
服务器端多线程
pthread_create
失败
c
、
multithreading
、
client-server
我正在编写一个多线程服务器,无论我如何尝试调试它,但出于某种原因,它实际上并没有进入
pthread_create
()调用的客户端线程( main底部)。知道为什么
pthread_create
()失败了吗? * connected file descriptor as the last argument. <
浏览 2
提问于2013-10-24
得票数 0
回答已采纳
1
回答
多线程程序中的故障分割
c
、
multithreading
、
unix
、
segmentation-fault
、
shared-memory
threads pthread_attr_t attr;
pthread_create
(&tid2, &attr, prodAll, NULL);
pthread_create
浏览 1
提问于2015-04-04
得票数 0
1
回答
c++ pthread_t:我如何确保它已经启动?
c++
、
pthreads
pthread_create
(&TID, &attrSys, &threadProcess, NULL)) std::cout << "Error on thread create." << std
浏览 0
提问于2017-12-07
得票数 0
1
回答
在c++中实现共享队列时发生死锁。
c
、
multithreading
、
pthreads
、
synchronisation
NULL; shared_q *q = alloc_q(sizeof(int), 5); int succ =
pthread_create
(&t1, NULL, producer, q) && if(succ) {
浏览 3
提问于2017-06-20
得票数 1
3
回答
C++不能将参数“1”的“发送方”转换为“无效*”,而不能将其转换为“无效*发送(无效*)”
c++
、
pthreads
、
friend
friend void* sending (void * callerobj); pthread_t tSending;}cannot convert ‘sender’ to ‘void*’ for argument ‘1’ to ‘void* sending(void*)’ 从
pthread_create
浏览 4
提问于2015-10-14
得票数 0
回答已采纳
2
回答
为什么我不能将我的"for“索引直接传递给
pthread_create
调用?
c
、
pthreads
mutex); 我不明白为什么要写这个:for(int i = 0; i < THREADS_NUMBER; i++){ t[i] = i;for(int i = 0; i < THREADS_NUMBER; i++){ pthread_join(thread
浏览 4
提问于2019-10-11
得票数 3
回答已采纳
1
回答
pthread_join中的分段故障
c
、
linux
、
multithreading
、
pthreads
for (int i = 0; i < 4; i++) { printf("create thread %d\n", i); threads[i] =
pthread_create
浏览 1
提问于2016-03-10
得票数 3
回答已采纳
1
回答
使用gmock模拟
pthread_create
c++
、
gmock
我有一个调用
pthread_create
(...)的方法。是否可以模拟并期望
pthread_create
的输出,这样我就不会实际启动线程了?
浏览 1
提问于2012-12-11
得票数 2
回答已采纳
1
回答
创建的线程未执行
linux
、
pthreads
(void *TArg)printf("THREAD i=%d\n", i);return NULL;{ TID=
pthread_create
浏览 25
提问于2020-06-22
得票数 0
回答已采纳
1
回答
我的线程不是平行的,它们是串行的。如何使它们并行?
c
、
multithreading
、
pthreads
**argv) pthread_t tid01; void * status01;
pthread_create
(&tid02, NULL, PrintOut02(), NULL); pthread_join
浏览 3
提问于2015-06-28
得票数 4
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
linux多线程服务器
Linux系统编程 线程属性
用c写一个简单的http服务器
C语言服务器编程必备常识
Probe:Android线上OOM问题定位组件
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券