搜索资源列表
65gfhfdh
- 课本上的算法是有信号量机制实现的(不要问我什么是信号量,课本上没讲)。声明一个int变量mutex(信号量),调用wait() signal()方法 。 wait(mutex) // if(mutex==0) { 阻塞当前进程 } else ( mutex-- } signal(mutex) // mutex++ 唤醒wait进程
thread-process
- VC++进程线程实例:EVENT,MUTEX,MUTITHREAD,PROCESS,SEMAPHORE,THREAD,UITHREAD,WORKERTHREAD
kernal
- 同事写的一个内核,占先式调度,支持简单的signal和mutex。很小的,根据需要,代码在0.5k-1k.
run
- 讨论临界区问题及其解决方案,分别利用Windows的mutex机制和软件方案解决。
ThreadSynchronizationUsingMutex
- Thread Synchronization Using Mutex
ZAccessMan
- 查看各种内核对象的访问权限的工具,如desktop,token,mutex,event,file,filemapping.....是学习window安全控制不可多的的好代码
Rhapsody-0.1.8.tar
- sourceforge历史版本完整下载: http://sourceforge.net/project/showfiles.php?group_id=202044 提供了基于b树索引算法的文件数据数据库模块详见storage/目录下面的 btree.c与pager.c container目录为常用的容器实现,如果rbtree avltree map heap list vector hashtable deque T树 B树, test目录为测试程序代码经过初步测试,比较稳定。 os_api:装
chengxuyuanma
- 用多线程同步方法解决读者阅览问题 1) 每个读者进入阅览室后,即时显示“Entered” 及其线程自定义标识,还同时显示阅览室共有几名顾客及其所坐的位置。 2) 至少有10个读者,每人阅览至少3秒钟。 3) 多个读者须共享操作函数代码。 2总的设计思想及系统平台、语言、工具: 设计思想:程序设定的是10个读者和5个座位,对读者进行编号,依次进入阅览室读书,为每一座位列一表目,包括座号和读者号等,读者离开时要登出,即消掉登记的信息。 系统平台:LINUX 语言:C语言
Mutex_Release
- 非常好用的关于互斥变量Mutex的创建,请求资源和释放句柄资源的实例
thread.tar
- linux下多线程程序设计,包括signals,mutex,simple_once
mutexs application
- 利用mutex object编写的多线程运用程序, 可以直接运行,可以手动改变线程优先级, 很直观。-use Mutex object prepared by the multi-threaded application procedures can be run directly can manually change the thread priority, very intuitive.
_banker
- 银行家算法可以解决计算机操作系统里的互斥。还有peterson等其他算法-bankers algorithm can solve computer's operating system Mutex. There are other algorithms Peterson
mutex:=1 ——互斥信息量,表示吸烟者进入的门
- 一些自己写的程序
Mutexes.rar 实现进程互斥的源代码
- 实现进程互斥的源代码,并有演示, The realization advancement incompatible source code, and has demonstrates
p-c
- 操作系统经典问题生产者和消费者,互斥信号量解决进程同步的问题-Classic problem of the operating system producers and consumers, the settlement process mutex synchronization problem
Mutex
- 进程互斥类,简单的互斥实现,同步控制线程间的互斥问题,避免死锁-Process of mutually exclusive categories, simple to achieve mutual exclusion, mutual exclusion synchronization problem between threads to avoid deadlocks
Code1
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何使用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-The writing of the multi-thread programming, multi-threaded applications to the problem. The sense of the mutex object, and how to use the mutex object to reali
ucore-lab
- Ucore是一个很小的适于学习的操作系统,此“麻雀”包含虚存管理、进程管理、处理器调度、同步互斥、进程间通信、文件系统等主要内核功能,总的内核代码量(C+asm)不会超过5K行。充分体现了“小而全”的指导思想。 这是全部的六个实验,有助于对操作系统的深入理解.-Ucore is a small operating system suitable for learning, " Sparrow" that contains the virtual memory managemen
Test
- Java生产者消费者的模拟器,核心代码是用线程做的,能体现出线程互斥同步的状况-Java producers and consumers of the simulator, the core code is done with thread, to reflect the status of the thread mutex synchronization
vcthreads
- VC 多线程操作实例源代码 如何安全终止线程 如何创建UI线程 如何创建Worker线程 如何等待线程结束 如何挂起和恢复线程 如何获得线程的退出码 如何使用互斥量 如何使用临界区 如何使用事件 如何使用信号量 有此实例代码,多线程无忧!-VC multi-threaded operating source code examples how to safely terminate a thr