登录
首页 » 操作系统 » 线程同步机制。 互斥器的功能和临界区域很相似。区别是:Mutex所花费的时间比Critical Section多的多,但是Mutex是核心对象(Event、...

线程同步机制。 互斥器的功能和临界区域很相似。区别是:Mutex所花费的时间比Critical Section多的多,但是Mutex是核心对象(Event、...

于 2023-07-23 发布 文件大小:1.80 MB
0 26
下载积分: 2 下载次数: 1

代码说明:

线程同步机制。 互斥器的功能和临界区域很相似。区别是:Mutex所花费的时间比Critical Section多的多,但是Mutex是核心对象(Event、Semaphore也是),可以跨进程使用,而且等待一个被锁住的Mutex可以设定TIMEOUT,不会像Critical Section那样无法得知临界区域的情况,而一直死等。-Thread synchronization mechanism. Mutex" s function and the critical region is very similar. The difference is: Mutex spent more time than the multi-Critical Section, but the Mutex is the core object (Event, Semaphore is), you can cross-process use, and has been locked waiting for a Mutex can be set to TIMEOUT, not as Critical Section did not know the critical situation in the region, for so long and so die.

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

发表评论

0 个回复

  • 文件复制器 2007.07.28.0最新VB源代码 地狱门神(F.R.C.) 适用范围 Windows环境下,本地存储设备的文件夹之间。 测试环...
    文件复制器 2007.07.28.0最新VB源代码 地狱门神(F.R.C.) 适用范围 Windows环境下,本地存储设备的文件夹之间。 测试环境 2007.07.27.0版,Windows XP SP2,一次复制文件量6.2万,大小11.5GB。 使用建议 如果需要使用本软件一次处理数量以万计算,大小以GB计算的文件,建议使用Visual Studio 2005集成环境调试运行,以发现并正确处理各种难以预料的异常,避免重复浪费时间。-Copy the file up-to-date browser 2007.07.28.0 hell god VB source code (FRC) the scope of application under the Windows environment, the local storage device between folders. Test environment 2007.07.27.0 version, Windows XP SP2, a copy volume of 62,000 documents, the size of 11.5GB. If you need to use the proposed use of the software first in order to deal with the number of million, and the size of the document calculated to GB, it is recommended to use Visual Studio 2005 integrated debugging environment to run to detect and correctly handle a variety of difficult to predict abnormal, avoid duplication of a waste of time.
    2023-09-05 01:25:02下载
    积分:1
  • attention : 1. OS.jar Java package for two executable files. Due to the time and...
    注意: 1. OS.jar为Java打包可执行文件 2. 由于时间,和界面空间问题,每个进程的资源拥有情况没有详细列明.如果要认真检查 程序的正确性,可以重新编译运行,然后查看Dos界 面下的输出.因为Dos界面下会输出 每个进程的资源情况(包括每个进程对每类资源的最大需求,分配情况,和所欠资源情况. 3. 资源设置中,进程设置应小于100个,资源类数应小于20个.-attention : 1. OS.jar Java package for two executable files. Due to the time and space interface, each process of the availability of resources, no details. If we were to check the correctness of procedures can recompile running, and then checking Dos interface output . because Dos output interface will process each of the resources (including each process for each category of the biggest resources demand, distribution, and outstanding resources. 3. resources set up, the process set up should be less than 100, the resource shall be less than 20.
    2023-04-06 21:55:03下载
    积分:1
  • 试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型...
    试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型数。 要求: (1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容.当前指针位置和生产者/消费者线程的标识符 (2)生产者和消费者各有两个以上 (3)多个生产者或多个消费者之间须共享对缓冲区进行操作的函数代码。-Test Objective : To study the Linux threading mechanism and signal to producers and consumers to achieve the concurrency control : a boundary buffer There are 20 storage units, Add/remove data items for a set of 20 ~ 20-integer. Requirements : (1) Each producer and consumer sector of the buffer zone is operated, immediately after the sector showed a buffer in its entirety. The current position and producer/consumer threads identifier (2) producers and consumers have two or more (3) A number of producers or many consumers to be shared between the right to operate the buffer function code.
    2023-06-17 09:40:03下载
    积分:1
  • 中会遇到银行家的问题
    操作系统中会遇到银行家的问题-operating system will encounter the problem of bankers
    2022-10-18 20:35:03下载
    积分:1
  • 用vc编写的用来模拟中电梯调度算法的程序。
    用vc编写的用来模拟操作系统中电梯调度算法的程序。-The ones that wrote vc used the procedure of dispatcher s algorithm of the lift in the simulation operating system.
    2022-07-23 21:46:51下载
    积分:1
  • In layman
    深入浅出ARM7-LPC213x_214xEmbedded_systems_architecture_Programming_and_Design-In layman
    2022-07-01 11:28:27下载
    积分:1
  • 内存使用查看器
    这是查看计算机中所有内存的一种非常简单的方法。大多数代码只是自我解释
    2022-02-03 13:28:10下载
    积分:1
  • 的存储管理
    操作系统的存储管理-Operating system storage management
    2022-02-11 21:46:05下载
    积分:1
  • 线程的调度模拟ok
    线程的调度模拟ok-thread scheduling simulation ok
    2022-04-09 15:03:44下载
    积分:1
  • 对分析窗体结构有独到之处。可以以十六进制和十进制两种不同方式显示窗口句柄等所有数值...
    对分析窗体结构有独到之处。可以以十六进制和十进制两种不同方式显示窗口句柄等所有数值-Analysis of the structure of the unique form. Can hexadecimal and decimal display in two different ways, such as window handle all the numerical
    2022-04-30 17:15:54下载
    积分:1
  • 696518资源总数
  • 104313会员总数
  • 30今日下载