登录
首页 » Java » Philosopher

Philosopher

于 2012-06-17 发布 文件大小:83KB
0 161
下载积分: 1 下载次数: 9

代码说明:

  实现哲学家算法模拟,出现死锁和不会出现死锁的情况(Philosophers algorithm simulation)

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

发表评论

0 个回复

  • FindMax
    求矩阵的最大值 有一个整型二维数组,大小为m行n列,要求分别找出其中最大值所在的行和列,以及该矩阵中的最大值。 要求: 1.编写自定义函数MaxVal 函数的原型为:int MaxVal(int arr[][N], int *m, int *n) 功能: 数组中最大元素的值通过MaxVal函数的返回值传递给主函数,最大元素的行值和列值分别通过m和n传递给主程序相应的变量。 2.main主函数的功能 (1)变量定义 (2)输入数组各元素的值 (3)以二维矩阵形式输出数组中各元素的值 (4)调用MaxVal函数,或者insert函数 (5)输出数组中最大元素的值和该数组元素的行值和列值。 3.所有关于数组的操作尽量使用指针 (FindMax)
    2010-10-12 23:15:24下载
    积分:1
  • 经曲的字符串匹配模糊搜索算法 思想不是本人的,但程序是本人编写的...
    经曲的字符串匹配模糊搜索算法 思想不是本人的,但程序是本人编写的-By the song
    2022-05-08 01:05:57下载
    积分:1
  • 八 方块移动游戏要求从一个含8个字(用1
    八 方块移动游戏要求从一个含8个数字(用1-8表示)的方块以及一个空格方块(用0表示)的3x3矩阵的起始状态开始,不断移动该空格方块以使其和相邻的方 块互换,直至达到所定义的目标状态。空格方块在中间位置时有上、下、左、右4个方向可移动,在四个角落上有2个方向可移动,在其他位置上有3个方向可移 动。例如,假设一个3x3矩阵的初始状态为: 8 0 3 2 1 4 7 6 5 目标状态为: 1 2 3 8 0 4 7 6 5-Eight-box requirements of mobile games from one containing eight numbers (1-8 with express) the box, as well as a space box (with 0) of the 3x3 matrix of the initial start, and constantly move the box to make space its adjacent box and swap until they reach their defined target state. Spaces in the middle position box has the upper and lower, left and right direction of four removable, in the four corners there are two directions can be mobile, in other locations has three movable direction. For example, suppose a 3x3 matrix of the initial state as follows: 803,214,765 target state as follows: 123,804,765
    2022-03-22 21:44:29下载
    积分:1
  • 层次的非递归算法
    层次的非递归算法-level of non- recursive algorithm
    2022-12-16 09:10:03下载
    积分:1
  • c++写的一个关于大整的问题,相信会给喜欢的朋友们带来帮助!...
    c++写的一个关于数据结构大整数的问题,相信会给喜欢数据结构的朋友们带来帮助!-c write data on the structure of a large sum of the problem, I believe, would like the data structure to help bring friends!
    2022-01-24 16:32:32下载
    积分:1
  • 一. 问题描述很多涉及图上操作的算法都是以图的遍历为基础的。试写一个程序,演示在连通的无向图上访问全部节点的操作。二. 基本要求以邻接多重链表为存储。实现连...
    一. 问题描述很多涉及图上操作的算法都是以图的遍历为基础的。试写一个程序,演示在连通的无向图上访问全部节点的操作。二. 基本要求以邻接多重链表为存储结构。实现连通无向图的深度和广度优先遍历。以用户指定的节点为起点,分别输出每种遍历下的节点访问序列和相应生成树的边集。-one. Description many issues involving maps of algorithms are to traverse the map-based. A written test procedures, demonstrating the connectivity of undirected graph visit all the nodes on the operation. 2. Adjacent to the basic requirements for storage of multiple linked list structure. Connectivity to the map without the depth and breadth- first traversal. User specified nodes as a starting point, the output of each node traversal visit Spanning Tree sequence and the corresponding set of edges.
    2022-07-10 16:08:09下载
    积分:1
  • 视频存储系统
    该系统允许注册新出租,改变现有的租金数据、 删除文件压缩的租金 按主索引键和辅助键搜索。
    2022-02-03 17:55:56下载
    积分:1
  • 主要是理方程基本框架很有用,对也有帮助
    主要是数理方程基本框架很有用,对数据结构也有帮助-main mathematical equation is the basic framework is used for the data structure also helped
    2023-05-06 11:25:03下载
    积分:1
  • 无穷大的两个相加或相乘
    无穷大的两个数相加或相乘,利用堆栈,是数据结构中重要的一部分,代码注释清晰,利用初学者使用
    2022-11-11 13:20:04下载
    积分:1
  • 一个计算SIN X的函,觉得算法还可以
    一个计算SIN X的函数,觉得算法还可以-a calculation SIN X function, algorithm can also think! !
    2023-01-29 02:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载