Welcome![Sign In][Sign Up]
Location:
Search - 互斥;

Search list

[Other resourceread-first

Description: 读者优先问题。操作限制:1)写-写互斥;2)读-写互斥;3)读-读允许; 读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行读操作,则该读者可直接开始读操作。-readers priority. Operating restrictions : a) write-write contradict; 2) read-write mutually exclusive; 3) Reading-Reading allowed; Readers priority to the additional restrictions : If an application for readers read another operation has been under way readers read operation, the reader can directly read operation began.
Platform: | Size: 2533 | Author: 橙子 | Hits:

[Other resourcewrite_first

Description: 写者优先问题。操作限制:1)写-写互斥;2)读-写互斥;3)读-读允许;写者优先的附加限制:如果一个读者申请进行读操作时已有另一写者在等待访问共享资源,则该读者必须等到没有写者处于等待状态后才能开始读操作。-wrote priority issues. Operating restrictions : a) write-write contradict; 2) read-write mutually exclusive; 3) Reading-Reading allowed; Write priority of the additional restrictions : If an application for readers read operation has already been written in another waiting for access to a shared resource, the reader must wait until the person was not waiting for the after the state can begin to read operation.
Platform: | Size: 2518 | Author: 橙子 | Hits:

[WinSock-NDISTCPCom

Description: 看了袁渊先生在VC知识库《在线杂志》第14期发表的文章《基于TCP/IP的局域网多用户通信》,感觉受益颇多,但也觉得里面有一些不太完善的地方,具体来说主要有: 1、两个服务器单独运行,且主线程均阻塞,用户界面死锁,不便于控制; 2、聊天服务器线程和互斥量的使用可能导致死锁; 3、不能实现文件传送(文件传送可不能由服务器转发,否则非把它累趴下不可^-^); 4、不能由用户进行网络设置,所以在不同的网络使用必须修改源程序等等; 我在此基础上重新设计编写了一个系统 -read YUAN Yuan in VC knowledge base "online magazine" 14 published an article, "based on TCP / IP LAN multi-user communication", I feel a lot of benefit, but also think that there are some less than perfect, specifically are : 1, 2 server running, and the main threads are blocked, the user interface Deadlock, facilitate control; 2, chat server threads and contradict the use of volume may lead to deadlock; 3, achieve file transfer (FTP can be transmitted by the server, otherwise he will not get on the ground tired ^ - ^) ; 4, and not by users for network configuration, the different networks must be revised source, etc.; I would like to re-design on the basis of the preparation of a system
Platform: | Size: 223079 | Author: 阿健 | Hits:

[Other resourcejava-qhmideleschooldaxue

Description: 清华大学Java课程.讲解JAVA语法,Java语言的发展及相关技术的介绍,Java技术和平台在网络计算及电子商务中的应用介绍;   ■ Java语言的基础知识:Java语言的主要特点,设计思想,Java虚拟机,垃圾回收机制,安全性的保证机制;   ■ Java语言的基本语法规范,包括标识符、关键字、数据类型、表达式和流控制,程序基本结构;   ■ 面向对象技术的基本特点,Java语言的面向对象特性,类和对象的概念,封装性、继承性、多态性,Java语言的特殊属性;Java程序的例外处理机制和方法;   ■ Java语言的输入/输出处理机制和方法,常用的输入/输出方法,输入/输出处理的应用;   ■ Java语言的图形用户界面设计:AWT界面设计的基本方法,常用的组件类库,图形用户界面的事件处理模型和方法,JFC介绍,Swing图形界面设计;   ■ Java Applet程序设计,Applet程序的特点,运行机制,与浏览器的集成,安全机制的使用;   ■ 多线程程序设计,进程和线程的联系和区别,多线程程序设计的一般方法,线程的生命周期,线程状态的控制,多线程的互斥和同步;   ■ Java语言的网络编程技术和应用,Socket程序设计,Client/Server程序设计;
Platform: | Size: 5587136 | Author: fengzheng1920 | Hits:

[OS Developossystem

Description: 基于DOS的多任务系统的实现 1. 用C语言完成线程的创建和撤消,并按优先权加时间片轮转算法对多个线程进行调度; 2. 改变时间片的大小,观察结果的变化。思考:为什么时间片不能太小或太大; 3. 假设两个线程共用同一软件资源(如某一变量,或某一数据结构),请用记录型信号量来实现对它的互斥访问; 4. 假设有两个线程共享一个可存放5个整数的缓冲,一线程不停的计算1到50的平方,并将结果放入缓冲中,另一个线程不断的从缓冲中取出结果,并将他们打印出来,请用记录型信号量实现这一生产者和消费者的同步问题; 5. 实现消息缓冲通信,并于3,4中的简单通信进行比较; 6. 思考:在线程间进行消息缓冲通信时,若对消息队列的访问没有满足互斥要求,情况会怎么样?-DOS-based multi-tasking system in a. C language to complete the creation and thread lift Priority increase as time slice Web algorithm for multiple-thread scheduling; 2. change the timing of the unit size, The results change. Thoughts : Why not films too little time or too much; 3. Assuming two threads to share the same software resources (such as a variable, or a data structure), with record-volume signal to achieve its exclusive interviews. 4. Suppose two threads share a deposit of five integer buffer keep a thread of 1-50 calculating the square, and the results Add buffer, Another constant thread removed from the buffer, and print them out, Please record-volume signal achieve this producers and consumers synchronization; 5. Implementation news buffer communications, and 3, 4 simple comm
Platform: | Size: 4139 | Author: Li | Hits:

[Process-ThreadRW

Description: 读者写者问题源码.包含我的注释. 没有加入工程文件. 只有一个R&W.cpp.在vc++6.0下编译成功. 在Windows 2000 环境下,创建一个包含n 个线程的控制台进程。用这n 个线程来表示n 个读者或写者。每个线程按相应测试数据文件的要求,进行读写操作。请用信号量机制实现读者-写者问题(读者优先)。 读者-写者问题的读写操作限制: 1)写-写互斥; 2)读-写互斥; 3)读-读允许; 读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行读操作,则该读者可直接开始读操作。 运行结果显示要求:要求在每个线程创建、发出读写操作申请、开始读写操作和结束读写操作时分别显示一行提示信息,以确信所有处理都遵守相应的读写操作限制。 下面是一个测试数据文件的例子: 1 R 3 5 2 W 4 5 3 R 5 2 4 R 6 5 5W 5 3 -readers to write source code problem. I included in the Notes. Not joined the project documents. Only one R
Platform: | Size: 6932 | Author: ralfz | Hits:

[File Operatefsjava

Description: 设计1进程管理;设计2进程的同步与互斥;设计3存储管理;设计4一个实用的Shell
Platform: | Size: 28611 | Author: xs | Hits:

[Other resourcemem

Description: 在了解实时嵌入式操作系统内存管理机制的特点以及实时处理对内存管理需求的基础上,练习并掌握有效处理内存碎片的内存管理机制,同时理解防止内存泄漏问题的良好设计方法。使用预先规划的思想,构建自己的私有内存管理机制,在系统内存池中申请内存,并将其纳入私有内存管理机制中,形成静态预分配内存池; 静态预分配内存池支持一种以上固定长度内存池,如16 字节内存池和256 字节内存池。固定长度内存池的单块长度应考虑体系结构开销,并尽量减少内部碎片;固定长度内存池数量应可配置; 静态预分配内存池与系统内存池的统一管理机制。向用户分配内存时应保证长度最佳匹配原则。当申请内存的长度超过静态预分配长度或资源不足时,自动向系统内存池申请; 管理机制包括: a) 初 始化函数; b) 内 存申请/释放函数。并特别要保证释放安全; c) 告 警机制; d) 管 理监视机制。 5. 利用可能的互斥机制或代码可重入设计,保证以上管理机制的操作安全性; 6. 创建多Task 环境测试及演示以上内容
Platform: | Size: 1398 | Author: 王昊 | Hits:

[Process-Threados

Description: 本系统的同步机构采用的信息量上的P,V操作的机制;控制机构包括阻塞和唤醒操作;时间片中断处理程序处理模拟的时间片中断;进程调度程序负责为各进程分配处理机。系统中设计了3个并发进程。它们之间有如下同步关系:3个进程需要互斥使用临界资源S2,进程1和进程2又需互斥使用临界资源S1。本系统在运行过程中随机打印出各进程的状态变换过程,系统的调度过程及公共变量的变化情况。
Platform: | Size: 2215 | Author: liuxin | Hits:

[Windows DevelopProcessSchedule_Dos

Description: ProcessSchedule 理解WINDOWS下进程/线程的互斥和同步的实现机制;
Platform: | Size: 45645 | Author: heting | Hits:

[OS programOSshengchanzhexiaofeizhe

Description: “生产者-消费者”的问题是进程互斥中一个著名的案例。 抽象背景:生产者和消费者共享一个缓冲区: 当生产者快时,保证不会有数据遗漏消费; 当消费者快时,保证不会有数据未产生就被消费; 此问题要求解决如下并发需求: 互斥:任一时刻仅有一个生产者或消费者访问缓冲区 同步:缓冲区满时生产者等待,缓冲区空时消费者等待 大概意思是:有一个有限缓冲区和两类线程,它们是生产者和消费者,生产者把产品放入缓冲区,相反消费者便是从缓冲区中拿走产品。 生产者在缓冲区满时必须等待,直到缓冲区有空间才继续生产;消费者在缓冲区空时必须等待,直到缓冲区中有产品才能继续读取。 我们可以看到,这里存在潜在的竞争条件,所谓竞争条件就是这样一种情况:多个线程对数据产生的作用要依赖于线程的调度顺序的。当两个线程竞相访问同一数据时,就会发生竞争条件。由于时间片的原因,一个线程可以在任意一个时刻打断其他线程,因此数据可能会被破坏或者被错误地解释。
Platform: | Size: 1846 | Author: 高建功 | Hits:

[OS DevelopReader-Writer

Description: 通过研究Linux的线程机制和信号量实现读者写者(Reader-Writer)问题并发控制。 1)写-写互斥:不能有两个写者同时进行写操作; 2)读-写互斥:不能同时有一个线程在读,而另一个线程在写; 3)读-读允许:可以有一个或多个读者在读; 4)读者优先的附加限制:如果读者申请进行读操作时已有另一个读者正在进行读操作,则该读者可直接开始读操作; 5)写者优先的附加限制:如果一个读者申请进行读操作时已有另一个写者在等待访问共享资源,则该读者必须等到没有写者处于等待状态后才能开始读操作。
Platform: | Size: 7772 | Author: vivien | Hits:

[Linux-Unix用多进程同步方法解决生产者-消费者问题

Description:
Platform: | Size: 49152 | Author: hello_cy | Hits:

[OS Develop操作系统存储器管理

Description: 本次程序的题目为:进程管理——支持多个进程并发运行的简单的进程管理模拟系统,对本实验的分析要求是:⑴系统中的同步机构采用信号量上的P、V操作的机制;⑵控制机构包括阻塞和唤醒操作;⑶时间片中断处理程序处理模拟的时间片中断;⑷进程调度程序负责为各进程分配处理机;⑸根据用户的需求来创建n个进程(n为即满足用户需求,又不超出系统可容的最大进程数),各进程互斥地访问使用临界资源 S1、S2;⑹使用动态优先数(如:随阻塞次数的增加而减小优先数,以提高其优先权);⑺进程结束后应能够撤消;⑻进程间能实现“发送”和“接收”两个消息缓冲通信操作;⑼系统在运行过程中随机打印出各进程的状态变换过程、系统的调度过程及公共变量的变化情况,在一个进程运行完毕,进入完成状态后,可以将该进程撤消,也可以动态的创建另一个新的进程。-the procedures on the topic of : process management-- to support multiple concurrent processes running a simple process management simulation system for the analysis of the experimental requirements are : 1 system of institutions using synchronous signals on the amount of P, V operation of the mechanism; 2 control agencies, including obstruction and awaken operation ; 3-time interrupt handling procedures-time simulation of interruption; 4 process scheduler is responsible for the allocation process processors; together according to the user's needs to create process n (n that meet user needs, without exceeding the system can accommodate the largest number of processes), the process of mutual Stating visit to the use of critical resources S1, S2; building a Dynamic priority number (eg :
Platform: | Size: 19456 | Author: 赵利君 | Hits:

[Windows Developmxd1

Description: 系统的同步机构采用信号量上的p、v操作的机制;控制机构包括阻塞和唤醒操作;时间片中断处理程序处理模拟的时间片中断;进程调度程序负责为各进程分配处理机。系统设计3个并发进程,它们之间有如下同步关系:3个进程需要互斥使用临界资源s2,进程1和进程2又需要互斥使用临界资源s1。系统在运行过程中随即打印各进程的状态变换过程,系统的调度过程及公共变量的变化情况。-system synchronization signal used agencies on the volume of p, v operation of the mechanism; Control agencies, including obstruction and awaken operation; Time Slice interrupt handling procedures-time simulation of interruption; The process scheduler is responsible for the allocation process processor. System design three concurrent process, and they are as follows synchronization : three processes require the use of critical resources contradict s2, a process and the need to process two mutually exclusive use of critical resources s1. System in the course of operation of the printing process was the transformation process of the state, the activation process variables and the public of the changes.
Platform: | Size: 1024 | Author: 李乐宁 | Hits:

[uCOSread-first

Description: 读者优先问题。操作限制:1)写-写互斥;2)读-写互斥;3)读-读允许; 读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行读操作,则该读者可直接开始读操作。-readers priority. Operating restrictions : a) write-write contradict; 2) read-write mutually exclusive; 3) Reading-Reading allowed; Readers priority to the additional restrictions : If an application for readers read another operation has been under way readers read operation, the reader can directly read operation began.
Platform: | Size: 2048 | Author: | Hits:

[uCOSwrite_first

Description: 写者优先问题。操作限制:1)写-写互斥;2)读-写互斥;3)读-读允许;写者优先的附加限制:如果一个读者申请进行读操作时已有另一写者在等待访问共享资源,则该读者必须等到没有写者处于等待状态后才能开始读操作。-wrote priority issues. Operating restrictions : a) write-write contradict; 2) read-write mutually exclusive; 3) Reading-Reading allowed; Write priority of the additional restrictions : If an application for readers read operation has already been written in another waiting for access to a shared resource, the reader must wait until the person was not waiting for the after the state can begin to read operation.
Platform: | Size: 2048 | Author: | Hits:

[Process-ThreadRW

Description: 读者写者问题源码.包含我的注释. 没有加入工程文件. 只有一个R&W.cpp.在vc++6.0下编译成功. 在Windows 2000 环境下,创建一个包含n 个线程的控制台进程。用这n 个线程来表示n 个读者或写者。每个线程按相应测试数据文件的要求,进行读写操作。请用信号量机制实现读者-写者问题(读者优先)。 读者-写者问题的读写操作限制: 1)写-写互斥; 2)读-写互斥; 3)读-读允许; 读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行读操作,则该读者可直接开始读操作。 运行结果显示要求:要求在每个线程创建、发出读写操作申请、开始读写操作和结束读写操作时分别显示一行提示信息,以确信所有处理都遵守相应的读写操作限制。 下面是一个测试数据文件的例子: 1 R 3 5 2 W 4 5 3 R 5 2 4 R 6 5 5W 5 3 -readers to write source code problem. I included in the Notes. Not joined the project documents. Only one R
Platform: | Size: 7168 | Author: ralfz | Hits:

[File Operatefsjava

Description: 设计1进程管理;设计2进程的同步与互斥;设计3存储管理;设计4一个实用的Shell -Design one process management Design 2 process synchronization and mutual exclusion design 3 storage management design 4 a practical Shell
Platform: | Size: 28672 | Author: xs | Hits:

[Other简单值班出差系统(Excel版本)

Description: 利用Excel+VBA编写的值班排班表,可以自动生成日历、值班出差人员点击选择、值班出差人员互斥、自动生成值班表格、值班出差统计及柱状图等功能。(The duty shift schedule written by Excel+VBA can automatically generate calendar, duty personnel on duty, click and select, on duty, business personnel exclusion, automatic generation of duty forms, on duty travel statistics and histogram functions.)
Platform: | Size: 1111040 | Author: 老董83 | Hits:
« 12 3 4 5 »

CodeBus www.codebus.net