登录
首页 » Process-Thread » 在windows 98/2000下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信...

在windows 98/2000下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信...

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

代码说明:

在windows 98/2000下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制实现读者优先的读者――写入者问题-the windows 98/2000, the process of creating a console, this process contain n threads. Use of these n threads to express n readers who write. Each thread according to the corresponding test data document requests and write. Using signal volume mechanisms readers priority readers-- into the problem

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

发表评论

0 个回复

  • Simple ProcessorControl Unit
    Simple ProcessorControl Unit
    2022-02-06 06:54:29下载
    积分:1
  • 任务管理器模拟,希望喜欢
    任务管理器模拟,希望喜欢-task management simulation, like
    2022-02-13 20:14:37下载
    积分:1
  • 实现一个多线程管理类,能够设定线程个数,自动分配任务,判定进程是否结束...
    实现一个多线程管理类,能够设定线程个数,自动分配任务,判定进程是否结束-The realization of a multi-threaded management can set the number of threads, automatic distribution of tasks, to determine whether or not the end of the process
    2022-01-30 21:54:23下载
    积分:1
  • windows线程同步
    windows线程同步-windows line regulation synchronization
    2022-06-14 08:39:38下载
    积分:1
  • 一个用C做得存储管理,很好用的,是操作系统的实验
    一个用C做得存储管理,很好用的,是操作系统的实验-doing a C storage management, good use, the operating system is experimental
    2022-03-24 23:02:36下载
    积分:1
  • 简单的进程查看器
    简单的进程查看器-simple process viewer
    2022-04-09 06:15:59下载
    积分:1
  • 高定时器,高分辨率,对实时处理有用。采用win32api编写
    高定时器,高分辨率,对实时处理有用。采用win32api编写-highresolutiontimer
    2023-05-11 19:25:03下载
    积分:1
  • pipeline category (30KB)
    管道类(30KB)-pipeline category (30KB)
    2022-05-26 16:44:21下载
    积分:1
  • the NT environment hidden process, the user is unaware of the conditions, the im...
    在NT环境下隐藏进程,也就是说在用户不知情的条件下,执行自己的代码的方法有很多种,比如说使用注 册表插入DLL,使用Windows挂钩等等。其中比较有代表性的是Jeffrey Richer在《Windows核心编程》中 介绍的LoadLibrary方法和罗云彬在《Windows环境下32位汇编语言程序设计》中介绍的方法。两种方法的 共同特点是:都采用远程线程,让自己的代码作为宿主进程的线程在宿主进程的地址空间中执行,从而达 到隐藏的目的。相比较而言,Richer的方法由于可以使用c/c++等高级语言完成,理解和实现都比较容易 ,但他让宿主进程使用LoadLibrary来装入新的DLL,所以难免留下蛛丝马迹,隐藏效果并不十分完美。罗 云彬的方法在隐藏效果上绝对一流,不过,由于他使用的是汇编语言,实现起来比较难(起码我写不了汇 编程序:))。笔者下面介绍的方法可以说是对上述两种方法的综合:采用c/c++编码,实现完全隐藏。并 且,笔者的方法极大的简化了远程线程代码的编写,使其编写难度与普通程序基本一致。-the NT environment hidden process, the user is unaware of the conditions, the implementation of their code There are various ways, for instance, the use of the registry into DLL, etc. linked to the use of Windows. The more representative Jeffrey Richer is the "core Windows programming" introduced by the LoadLibrary method and the Luo Bin, "under Windows 32 assembly language programming" introduced by the method. Two methods are common features are : remote threads are used to keep the code as host process threads in t
    2022-03-23 05:27:10下载
    积分:1
  • 此为操作系统实验报告:处理器调度 内含:程序流程图 设计目的与思路 主要源码等. 简介:在采用多道程序设计的系统中,往往有若干个进程同时处于就绪状态。当就绪状态...
    此为操作系统实验报告:处理器调度 内含:程序流程图 设计目的与思路 主要源码等. 简介:在采用多道程序设计的系统中,往往有若干个进程同时处于就绪状态。当就绪状态进程个数大于处理器数时,就必须依照某种策略来决定哪些进程优先占用处理器。本实验模拟在单处理器情况下处理器调度,帮助学生加深了解处理器调度的工作。-experimental operating system for this report : Processor Scheduling consisting of : flowchart designed and ideas such as major source. Introduction : the introduction of multi-channel programming system, often there are a number of processes at the same time readiness. When the readiness of the process is greater than the number when the number of processors, it must, in accordance with a strategy to determine which process priority processor. Experimental simulation of the processor in a single processor scheduling circumstances, to help students better understand processor scheduling work.
    2023-03-20 12:00:03下载
    积分:1
  • 696518资源总数
  • 106253会员总数
  • 14今日下载