登录
首页 » Process-Thread » 这是一道经典的线程同步问题――哲学家吃饭问题。这里结合了win32使得这个问题可视化了...

这是一道经典的线程同步问题――哲学家吃饭问题。这里结合了win32使得这个问题可视化了...

于 2023-01-27 发布 文件大小:16.68 kB
0 39
下载积分: 2 下载次数: 1

代码说明:

这是一道经典的线程同步问题――哲学家吃饭问题。这里结合了win32使得这个问题可视化了-This is a classic thread synchronization-- philosopher food problem. Win32 here combination of this makes the issue of visualization

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

发表评论

0 个回复

  • visual c++消息处理和多线程编程
    visual c++消息处理和多线程编程-visual c++ message processing and multi-threaded programming
    2022-07-26 08:06:31下载
    积分:1
  • 利用多线程计算平方和 sum=1^2+2^2+3^2.....+n^2
    利用多线程计算平方和 sum=1^2+2^2+3^2.....+n^2-The use of multi-threaded calculation of square and the sum = 1 ^ 2+ 2 ^ 2+ 3 ^ 2 .....+ N ^ 2
    2022-08-21 11:15:33下载
    积分:1
  • multiple thread演示,virtual系统的multiple thread,有助于教学用途
    multiple thread演示,virtual系统的multiple thread,有助于教学用途-multiple thread demonstration of multiple virtual thread, and the teaching purposes
    2022-08-22 08:34:26下载
    积分:1
  • 查看当前线城的信息及线程池的应用 vb.net
    查看当前线城的信息及线程池的应用 vb.net-See the current line of the city of thread pool information and application vb.net
    2022-06-02 02:53:57下载
    积分: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
  • 监视进程的时间,运行状态等信息的程序.(xp下请重新编译)
    监视进程的时间,运行状态等信息的程序.(xp下请重新编译)-Monitor the process of time, running the procedures and other information. (Xp under please recompile)
    2023-05-28 07:05:03下载
    积分:1
  • vb实现进程模拟事件
    vb实现进程模拟事件-vb realization process simulation events
    2023-04-12 12:00:03下载
    积分:1
  • Provides a shared memory under windows class, the class is just a simple model t...
    提供了一个windows 下共享内存的类,该类只是一个简单的模型,说明了在windows 下如何实现共享内存-Provides a shared memory under windows class, the class is just a simple model to illustrate how in the windows shared memory
    2023-08-23 03:35:04下载
    积分:1
  • VB6.0编写一个多
    一个基于vb6.0编写的多线程程序.以两个图片框背景色的同时改变来演示多线程-vb6.0 prepared for a multi-threaded process. Photo frame with two background color change at the same time to demonstrate the multithread
    2023-04-11 07:30:03下载
    积分:1
  • 关于windows的开发,用于实现时钟开发
    关于windows的开发,用于实现时钟开发-windows on the development, the clock used to achieve development
    2022-07-08 13:16:07下载
    积分:1
  • 696518资源总数
  • 104353会员总数
  • 66今日下载