搜索资源列表
-
0下载:
在Windows环境下,参考Windows环境下线程同步、互斥操作的例子,利用基本的文件操作系统调用,模拟读写问题。编写相应的函数,建立一个记录型的共享文件,并实现对该共享文件的打开、关闭、删除、读、追加记录、删除记录等操作。同时要求利用进程的同步与互斥机制实现多个用户进程对该文件的并发访问-the Windows environment, Windows environment reference thread synchronization, contradict operation exa
-
-
0下载:
一个多线程,线程同步的例子,
(debug一个目录和一个配置文件是执行程序使用的,所以没有删除)-more than one thread, thread synchronization example, (debug a catalog and a configuration file is used in the implementation of procedures, there is no delete)
-
-
0下载:
linux c 文件拷贝,内存共享,信号量,同步机制-linux c file copy, memory sharing, semaphores, synchronization mechanism
-
-
0下载:
四线程同步下载程序。可以用于下载文件比较大的情况下-Four-thread synchronization download. You can download the file for the case of larger
-
-
0下载:
运用文件共享、互斥体、信号量、关键段、油槽及管道实现线程同步和进程通讯。-The use of file sharing, and mutexes, semaphores, critical sections, tank and piping, thread synchronization and interprocess communication.
-
-
0下载:
Visual C++利用互斥量同步线程实现文件读取进度条-Visual C++ :using mutex thread synchronization to read file with show in the progress bar
-
-
1下载:
银行柜员服务问题:银行有n个柜员负责为顾客服务,顾客进入银行先取一个号码,然后等着叫号。当某个柜员空闲下来,就叫下一个号。
编程实现该问题,用P、V操作实现柜员和顾客的同步。
实现要求
某个号码只能由一名顾客取得;
不能有多于一个柜员叫同一个号;
有顾客的时候,柜员才叫号;
无柜员空闲的时候,顾客需要等待;
无顾客的时候,柜员需要等待。
测试文本格式
测试文件由若干记录组成,记录的字段用空格分开。记录第一个字段是顾客序号,第二字段为顾客进入银行的时间,
-