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
[
Linux-Unix
]
pv
DL : 0
设有父子2个进程共享一个临界资源,每个进程循环进入该临界区3次:父进程每次进入临界区后显示“prnt in”,出临界区则显示“prnt out”;子进程每次进入临界区后显示“chld in”出临界区则显示“chld out”。观察运行结果,应该是一个进程出来后另一个才能进去。 -Father and son with two processes share a critical resource in each process cycle to enter the critical section 3 times: each time the parent process into the critical region revealed prnt in , a critical region showed prnt out each sub-process times to enter the critical region revealed chld in a critical region showed chld out . Observation of the results, it should be a process in order to go after another.
Date
: 2025-12-19
Size
: 1kb
User
:
吕璐
[
Linux-Unix
]
lock
DL : 0
Initialize Critical Section And Spin Count for Linux.
Date
: 2025-12-19
Size
: 1kb
User
:
dupawon
[
Linux-Unix
]
kvm_emul
DL : 0
Enable critical section. We are critical if \ shared->critical == r1.
Date
: 2025-12-19
Size
: 2kb
User
:
wghingceng
[
Linux-Unix
]
manage
DL : 0
Wait until we re out of the critical section. This might give the wrong answer due to the lack of memory barriers. -Wait until we re out of the critical section. This might give the wrong answer due to the lack of memory barriers.
Date
: 2025-12-19
Size
: 13kb
User
:
liucnvang
[
Linux-Unix
]
lib_mutex
DL : 0
Windows API: use a critical section with a state describing whether it has been initialized or not or is being initialized.
Date
: 2025-12-19
Size
: 1kb
User
:
ypdhgq
[
Linux-Unix
]
lock
DL : 0
A convenient wrapper for an OS specific critical section. The only real intelligence in this class is in debug mode for the support for the AssertAcquired() method.
Date
: 2025-12-19
Size
: 2kb
User
:
peiwfho
[
Linux-Unix
]
share
DL : 0
Wait on the semaphore till it is released.Lock the mutex to protect the critical section.
Date
: 2025-12-19
Size
: 3kb
User
:
sengcnrp
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.