windows下vc多线程编程

时间:2013-02-11 09:59:52
【文件属性】:

文件名称:windows下vc多线程编程

文件大小:1.08MB

文件格式:RAR

更新时间:2013-02-11 09:59:52

multithread

本程序在VC环境中实现多线程编程。MultiThread有助于大家学习windows环境下的多线程编程。希望对大家能有所帮助。 hStdOut = GetStdHandle( STD_OUTPUT_HANDLE ); /* Get display screen's text row and column information. */ GetConsoleScreenBufferInfo( hStdOut, &csbi ); /* Launch CheckKey thread to check for terminating keystroke.此线程用来控制线程和程序的终止 */ _beginthread( &CheckKey, 0, NULL ); /* Loop until CheckKey terminates program. */ while( repeat ) { /* On first loops, launch character threads. */ _beginthread( Bounce, 0, (void *) (ch++) ); //不断启动新的线程 /* Wait one second between loops. */ Sleep( 1000L ); }


【文件预览】:
MultiThread
----MultiThread.opt(48KB)
----MultiThread.ncb(41KB)
----MultiThread.dsw(547B)
----multiThread.cpp(3KB)
----人人软件站.url(171B)
----Debug()
--------MultiThread.pdb(161KB)
--------vc60.pdb(76KB)
--------vc60.idb(137KB)
--------MultiThread.ilk(208KB)
--------MultiThread.exe(156KB)
--------MultiThread.pch(3.4MB)
--------multiThread.obj(14KB)
----Readme.txt(3KB)
----Softii.com.txt(288B)
----MultiThread.dsp(4KB)
----MultiThread.plg(500B)

网友评论

  • 资源帮助到我了,非常感谢,谢谢分享!