代码搜索:pthread_create
找到约 436 项符合「pthread_create」的源代码
代码结果 436
www.eeworm.com/read/199886/7814892
txt thread error.txt
关于linux下多线程编程,小弟遇到了点麻烦,请各位指导一下,谢谢.
这是编译时的错误信息:
[root@localhost thread]# g++ -o mutilthread main.cpp
main.cpp: In function `int main()':
main.cpp:14: error: invalid conversion from `void*' to `
www.eeworm.com/read/315886/13535086
c hellothread.c
#include
#include
//#define NULL 0
int i = 0;
void *threadA(void *arc)
{
// int i = 0;
while(1)
{
printf("hello threadA***%d***times\n", i++);
www.eeworm.com/read/315886/13535087
c thread.c
#include
#include
//#define NULL 0
void *threadA(void *arc)
{
while(1)
{
printf("hello threadA\n");
sleep(2);
}
}
void *threadB(void *arc)
{
while(1)
{
www.eeworm.com/read/258614/11849903
c thread.c
/*
****************************************Copyright (c)**************************************************
** Guangzhou Zhiyuan Electronic Co.,LTD.
**
www.eeworm.com/read/152711/12091110
c myhello.c
/*
** $Id: helloworld.c,v 1.1.1.1 2003/06/03 06:57:15 weiym Exp $
**
** Listing 2.1
**
** helloworld.c: Sample program for MiniGUI Programming Guide
** The first MiniGUI Application
**
** Copy
www.eeworm.com/read/227822/14410455
c testthread.c
#include
#include
#include
#include
#include
#include
#include
#include
#include
void *thread1_fu
www.eeworm.com/read/126571/14416564
c sem.c
/* File sem.c */
#include
#include
#include
#define MAXSTACK 100
int stack[MAXSTACK][2];
int size=0;
sem_t sem;
/* READ FORM 1.dat*/
void ReadData1(void){
FILE *fp=fopen("1.dat","r");
w
www.eeworm.com/read/223422/14641740
c rs232-test.c
/************************************************
* serial communication demo
* by Zou jian guo
* 2003-12-22
*
*************************************************/
#include
www.eeworm.com/read/475708/6775849
cpp gwmain.cpp
/**********************************************************************
FileName : GWmain.cpp
Description : 短消息代理网关主程序
Version : 1.0
Date : 2003年6