CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Critical Section
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Critical Section - List
[
Process-Thread
]
multi_thread.zip
DL : 0
3种多线程同步方式(Critical Section,Mutex,Event)的小例子
Date
: 2025-12-18
Size
: 2.67kb
User
:
[
Process-Thread
]
thread.zip
DL : 0
3种多线程同步方式(Critical Section,Mutex,Event)的小例子
Date
: 2025-12-18
Size
: 3.8kb
User
:
[
Process-Thread
]
3ThreadDoc
DL : 0
多线程----介绍3种多线程同步方式(Critical Section,Mutex,Event)例子-introduced three kinds of multithreaded synchronization mode (Critical Section, Mutex, Event) example
Date
: 2008-10-13
Size
: 2.97kb
User
:
popandsmtp
[
Process-Thread
]
multi_thread
DL : 0
3种多线程同步方式(Critical Section,Mutex,Event)的小例子-3 multithreading synchronous mode (Critical Section, Mutex, Event) small example
Date
: 2025-12-18
Size
: 3kb
User
:
站长
[
Process-Thread
]
3ThreadDoc
DL : 0
多线程----介绍3种多线程同步方式(Critical Section,Mutex,Event)例子-introduced three kinds of multithreaded synchronization mode (Critical Section, Mutex, Event) example
Date
: 2025-12-18
Size
: 3kb
User
:
popandsmtp
[
Process-Thread
]
MultiThread
DL : 0
多线程的三种形式,对象,互斥,临界区,希望对大家学习多线程有用.-Three forms of multi-threaded, object, mutex, critical section, in the hope that we learn from multi-threaded useful.
Date
: 2025-12-18
Size
: 16kb
User
:
wu0251
[
Process-Thread
]
CriticalSection
DL : 0
this a Critical Section test program. code is simple but easy to learn.-this is a Critical Section test program. code is simple but easy to learn.
Date
: 2025-12-18
Size
: 1.16mb
User
:
metlbard
[
Process-Thread
]
ThreadTest
DL : 0
模拟多进程共享临界资源 1、实现两个进程模拟进入临界区的用户进程,当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程提出申请;申请返回,表示进入了临界区。在临界区中等待一段随机时间,并显示:“进程x正在临界区…”;当时间结束,显示:“进程x退出临界区…”,同时向管理进程提出退出申请;当申请返回,显示:“进程x已退出临界区。” 2、一个进程作为原语的管理进程,接受其他进程的临界区进入请求:如果允许进入,则设置相应变量,然后返回;如果不允许进入,则进入循环等待,直到允许为止; 3、对临界区的访问应遵循空闲让进、忙则等待、有限等待、让权等待的准则。 4、进程间通信可以采用信号、消息传递、管道或网络通信方式。 -Simulation of multi-process sharing of critical resources 1, the realization of the process of simulation of the two critical areas of the user to enter the process, when to enter the critical zone, showed that: "the process of the request to enter the critical section x ...", at the same time make an application to the management process applied to return, that has entered a critical section. Critical areas in the random wait time, and display: "x is critical process ..." when the end time shows: "the process of x from the critical areas ..." and at the same time to withdraw from the application management process when applied to return, showing: "the process of x have withdrawn from the critical area." 2, a process management as a primitive process, other process requests to enter the critical region: if allowed to enter, then set the appropriate variables, and then return if not allowed to enter, then enter the cycle of waiting until the permit is effected 3, access to cr
Date
: 2025-12-18
Size
: 12kb
User
:
hengdd
[
Process-Thread
]
CriticalSecitonThreadSyn
DL : 0
一个使用临界区对象(CriticalSeciton)实现线程同步的例程,来自于Visual C++范例大全-The use of a critical section object (CriticalSeciton) to achieve thread synchronization routines, from the Visual C++ examples of Daquan
Date
: 2025-12-18
Size
: 34kb
User
:
ladeng
[
Process-Thread
]
criticalsection
DL : 0
用vs2008写的用critical section的多线程编程-Written using vs2008 with the critical section of the multi-threaded programming
Date
: 2025-12-18
Size
: 12.49mb
User
:
dlw
[
Process-Thread
]
CriticalSectionDemo05
DL : 0
适用临界区线程同步技术,对线程安全性问题作处理,也是最简单的一种同步技术-Critical section for thread synchronization, thread-safety issues of handling, is the simplest kind of synchronization
Date
: 2025-12-18
Size
: 28kb
User
:
peterlee
[
Process-Thread
]
SimuRWLock
DL : 0
通过Mutex封装实现的读写锁类。写锁优先于读锁。如果有写锁在等待,则读锁一直等待,直到写锁获取锁,并释放后才能获取。读锁是共享锁,写锁是独占锁。提供Mutex与临界区两种方式可宏切换实现,Mutex为系统内核对象,速度比较慢,但比较好控制。临界区速度快,但无进入临界区无超时时间,对时间控制不精确。 BOOL ReadLock(int timeout=INFINITE) BOOL TryReadLock(int timeout=INFINITE,BOOL bLock=TRUE) BOOL ReadUnLock(int timeout=INFINITE) BOOL WriteLock(int timeout=INFINITE) BOOL TryWriteLock(int timeout=INFINITE,BOOL bLock=TRUE) BOOL WriteUnLock(int timeout=INFINITE) BOOL WriteToRead(int timeout=INFINITE) BOOL ReadToWrite(int timeout=INFINITE) -Achieved through the Mutex package to read and write locks. Priority read lock to write lock. If write lock is waiting, the time lock has to wait until the write lock for the lock, and release to get. Read lock is a shared lock, write lock is an exclusive lock. Mutex and critical section provides two ways to achieve macro switch, Mutex object for the system kernel, the speed is slower, but better control. Speed critical areas, without access to critical areas without timeout, time-control inaccurate. BOOL ReadLock (int timeout = INFINITE) BOOL TryReadLock (int timeout = INFINITE, BOOL bLock = TRUE) BOOL ReadUnLock (int timeout = INFINITE) BOOL WriteLock (int timeout = INFINITE) BOOL TryWriteLock (int timeout = INFINITE, BOOL bLock = TRUE) BOOL WriteUnLock (int timeout = INFINITE) BOOL WriteToRead (int timeout = INFINITE) BOOL ReadToWrite (int timeout = INFINITE)
Date
: 2025-12-18
Size
: 29kb
User
:
ceofit
[
Process-Thread
]
CriticalSecitonThreadSyn
DL : 0
vc——使用临界区对象(CriticalSeciton)实现线程同步\CriticalSecitonThreadSyn的程序源码,值得一看!-vc- use a critical section object (CriticalSeciton) to achieve thread synchronization \ CriticalSecitonThreadSyn the program source code, worth a visit!
Date
: 2025-12-18
Size
: 30kb
User
:
[
Process-Thread
]
vcthreads
DL : 0
VC 多线程操作实例源代码 如何安全终止线程 如何创建UI线程 如何创建Worker线程 如何等待线程结束 如何挂起和恢复线程 如何获得线程的退出码 如何使用互斥量 如何使用临界区 如何使用事件 如何使用信号量 有此实例代码,多线程无忧!-VC multi-threaded operating source code examples how to safely terminate a thread how to create a UI thread how to create a Worker thread to wait for the end of the thread to suspend and resume threads on how to obtain the exit code of how to use the thread mutex how to use the critical section how to use the event how to use the signal volume of this sample code, multi-threaded worry!
Date
: 2025-12-18
Size
: 131kb
User
:
田浩
[
Process-Thread
]
Mutex
DL : 0
首先,在主线程中使用InitializeCriticalSection()初始化临界分区。然后建立两个子线程,在两个子线程中使用全局变量count的前、后分别使用 EnterCriticalSection()进入临界区及LeaveCriticalSection()退出临界区。等两个子线程运行完毕,主线程使用DeleteCriticalSection()删除临界区并撤销线程。-First of all, in the main thread InitializeCriticalSection () to initialize the critical partition. Then create two sub-threads, in two sub-thread count of global variables, respectively, using the EnterCriticalSection () to enter the critical section, and LeaveCriticalSection () to exit the critical section. The two sub-thread has finished running, the main thread to use DeleteCriticalSection () to delete the critical section and revoke the thread.
Date
: 2025-12-18
Size
: 944kb
User
:
slp
[
Process-Thread
]
Thread
DL : 0
同步信号:信号量同步,临界区同步,互斥同步,清屏功能。-Synchronization signals: semaphore synchronization, critical section synchronization, mutual exclusion synchronization
Date
: 2025-12-18
Size
: 6.11mb
User
:
maxiao
[
Process-Thread
]
MultiThread8
DL : 0
利用临界区实现线程间的同步.任一时刻只有一个线程可以拥有临界区对象,拥有临界区的线程 可以访问被保护起来的资源或代码段,其他希望进入临界区的线程 将被挂起等待,直到拥有临界区的线程放弃临界区时为止,这样 就保证了不会在同一时刻出现多个线程访问共享资源。-using critical section to realize the synchronization among threads.
Date
: 2025-12-18
Size
: 4.32mb
User
:
Vector
[
Process-Thread
]
CriticalSection
DL : 0
使用关键代码段的例子,对学习使用关键代码段是很好的例子,这些都是很好的例子源码。-these are the demos of critical section,to learn how tos use critical section which are good useful,and they are very useful source codes.
Date
: 2025-12-18
Size
: 1012kb
User
:
陈曦
[
Process-Thread
]
Thread-Synchronization
DL : 0
VC++6.0中实现线程同步,分别采用互斥对象、临界区对象、事件对象以及信号量对象来实现对线程的同步操作,代码经过项目的检验。-VC++ 6.0 to implement thread synchronization, respectively mutex object, the critical section object, event objects, and semaphores objects to implement thread synchronization, the code tested items.
Date
: 2025-12-18
Size
: 2.38mb
User
:
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.