多线程开发

下面代码执行函数testMyThread后输出结果是什么?
void *Mythread(void *args)
{
	cout << "I am MyThread"<<endl;
}

void testMythread()
{

	pthread_t thId;
	memset(&thId, 0, sizeof(thId));
	
	if(0 == pthread_create(&thId, NULL, Mythread, NULL))
	{
		cout << "create thread success ";
	}

}

A. create thread success
B. I am MyThread
C. create thread success I am MyThread
D. 其他

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务