登录
首页 » Process-Thread » 使用 STL 做的windows 下的线程池,半同步/半异步模型,当线程没有使用时被suspend。...

使用 STL 做的windows 下的线程池,半同步/半异步模型,当线程没有使用时被suspend。...

于 2022-02-02 发布 文件大小:13.58 kB
0 136
下载积分: 2 下载次数: 1

代码说明:

使用 STL 做的windows 下的线程池,半同步/半异步模型,当线程没有使用时被suspend。-STL use under windows to do the thread pool, semi-synchronous/semi-asynchronous model, when the thread was not using suspend.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • series of multi
    多线程编程系列。一个线程池实现的实例代码。很好。-series of multi-threaded programming. A thread pool to achieve the example code. Very good.
    2022-07-17 00:04:04下载
    积分:1
  • c++builder下的多线程例程,多线程演示三种排序方法,为初学者理解多线程很有帮助~!...
    c++builder下的多线程例程,多线程演示三种排序方法,为初学者理解多线程很有帮助~!-c++ builder under the routine multi-threaded, multi-threaded sort of three methods of presentation, for beginners to understand multi-threaded helpful ~!
    2022-04-25 12:34:18下载
    积分:1
  • program VirtualMemory {$APPTYPE CONSOLE} uses SysUtils, Windows const PageSize =...
    program VirtualMemory {$APPTYPE CONSOLE} uses SysUtils, Windows const PageSize = 4096 //定义页面大小 var VmAddress, CommitAddress: Pointer //存放虚拟内存基址 Text: Pchar begin //保留二页虚拟内存 VmAddress := VirtualAlloc(nil, PageSize * 2, MEM_RESERVE, PAGE_READWRITE) if not Assigned(VmAddress) then begin WriteLn( 保留虚拟内存失败! ) ExitProcess(0) end else WriteLn(Format( 保留虚拟内存成功, 基址为:[%8.8x]! , [Longint(VmAddress)])) //提交第二页虚拟内存 CommitAddress := Pointer(Longint(VmAddress) + PageSize) CommitAddress := VirtualAlloc(CommitAddress, PageSize, MEM_COMMIT, PAGE_READWRITE) if not Assigne-program VirtualMemory ($ APPTYPE CONSOLE) uses SysUtils, Windows const PageSize = 4096// definition pages size var VmAddress, CommitAddress : Pointer// virtual memory-based storage site Text : Pchar begin// reservations two virtual memory VmAddress : = VirtualAlloc (nil. PageSize* 2, MEM_RESERVE, PAGE_READWRITE) if not Assigned (VmAddress) then begin WriteLn (reservations virtual memory failure!) ExitProcess (0) end else WriteLn (Format
    2022-10-06 15:35:03下载
    积分:1
  • 通过修改互斥体 达到重复启动程序的目的 !
    通过修改互斥体 达到重复启动程序的目的 !-Change the Mutex
    2022-01-21 06:07:10下载
    积分:1
  • 一个计算器程序 能够执行计算器的普通功能
    一个计算器程序 能够执行计算器的普通功能-a calculator program to implement the general function calculator
    2022-09-18 05:35:03下载
    积分:1
  • 这是我写的Win32 console Application程序来测试_beginthread函数创建多线程程序的用法以及参数传递的程序。
    这是我写的Win32 console Application程序来测试_beginthread函数创建多线程程序的用法以及参数传递的程序。- This is Win32 console which I writes the Application procedure tests the _beginthread function foundation multithreading procedure the usage as well as the parameter transmission procedure.
    2022-04-10 06:09:13下载
    积分:1
  • 利用命名管道实现进程间的通信,本程序为服务器端程序
    利用命名管道实现进程间的通信,本程序为服务器端程序-Realize the use of Named Pipes Interprocess Communication, the procedures for the server-side procedures
    2022-02-10 16:32:16下载
    积分:1
  • 模拟操作系统运行的源代码 Description: The object of this project is to write a C++ applicati...
    模拟操作系统运行的源代码 Description: The object of this project is to write a C++ application to simulate the scheduler of a simple operating system.新手看linux源代码太困难,这个可是个不错的选择哦....不下可惜-simulation operating system source code Description : The object of this project is to write a C application to simulate the scheduler of a simple operating system. Linux newcomers to see the source code too difficult, but a good choice .... Oh no less than a shame! !
    2022-06-18 21:04:46下载
    积分:1
  • 多进程的解决方案 : 创建一个包含四个窗口的多任务模拟:第一个窗口必须显示一系列的递增偶数;第二个窗口必须显示一系列的递增素数;第三个窗口必须显示任意半径的圆;第四个窗口必须显示一系列的随机矩形。-multi-process solution : Create a window contains four multi-task simulation : a window to show a series of incremental even; The second window must show a series of incremental prime; The third window must demonstrate arbitrary radius of the circle; The fourth window must show a series of random Rectangular.
    2022-06-16 21:29:06下载
    积分:1
  • 一个异步线程的例子!使用C++编写。 多线程编写初步例子!...
    一个异步线程的例子!使用C++编写。 多线程编写初步例子!-Example of an asynchronous thread! The use of C++ Prepared. Examples of the preparation of a preliminary multi-threaded!
    2022-02-04 20:02:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载