CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
【经验总结】不能实施并行处理的情况 浅谈并行编程中的任务分解模式
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

创建线程

楼主maruchun(小马过河)2005-04-20 11:07:45 在 VC/MFC / 基础类 提问

线程里面用了c的库函数。创建线程要用哪个线程函数,_beginthreadex还是CreateThread   API?还是两个都可以,有什么不一样? 问题点数:20、回复次数:2Top

1 楼steedhorse(晨星)回复于 2005-04-20 12:20:40 得分 10

调用了CRT库函数,最好使用_beginthreadexTop

2 楼steedhorse(晨星)回复于 2005-04-20 12:22:26 得分 10

还是MSDN里说的更详尽:  
   
  A   thread   that   uses   functions   from   the   static   C   run-time   libraries   should   use   the   beginthread   and   endthread   C   run-time   functions   for   thread   management   rather   than   CreateThread   and   ExitThread.   Failure   to   do   so   results   in   small   memory   leaks   when   ExitThread   is   called.   Note   that   this   is   not   a   problem   with   the   C   run-time   in   a   DLL.Top

相关问题

  • 创建线程!!!
  • 用CreateThread(...)创建线程...?
  • 如何创建多线程
  • 创建线程问题。
  • 请问创建线程时,怎样给线程传递参数??
  • 一个在主线程中的子线程能否在线程函数中创建自己的子线程呢?
  • 当前线程A创建另一个线程B后,怎样让线程A等待直到线程B完成?
  • 在vc中动态创建线程
  • 在多线程中如何创建CSOCKET???
  • win32 sdk 编程如何创建线程?

关键词

  • 线程
  • 函数
  • 创建线程
  • beginthreadex
  • exitthread
  • 库函数
  • createthread
  • c run
  • 还是
  • thread

得分解答快速导航

  • 帖主:maruchun
  • steedhorse
  • steedhorse

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
惹火投票。。火热进行中...
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
CSDN网站24小时值班电话:13552009689
Copyright © 2000-2009, CSDN.NET, All Rights Reserved
GongshangLogo