搜索资源列表
BCBMultiThreaded.rar
- Borland C++ Builder BCB的多线程例子 包括创建线程 运行线程等 简单易懂 exe文件可直接运行 看到效果 ,BCB examples include the multi-threaded thread running threads, such as the creation of easy-to-read document can be directly run the exe to see the effect of
threadDemo
- bcb线程的创建与执行,不是用BCB自己创建的那种-bcb thread creation and execution, not the kind you create yourself with BCB
BCB多线程
- 程序的执行原理是这样的,一个多线程里面包含了读和写test.txt记事本的功能。 因为读写记事本的消耗时间很短,在写记事本里面故意加了2s延时以造成多线程的明显冲突。本多线程是使用的临界区:CRITICAL_SECTION。按下按钮,通知线程要写入一串字符(线程执行完需要2s以上),延时20ms后通知线程再写入一串字符,跟第一次写入造成“冲突”,延时20ms后,在两个写都没完成时再通知线程要读同一个记事本。 因此造成线程中三个事件“打架”。(Procedures for the implem