org.apache.avalon.excalibur.concurrent
クラス DjikstraSemaphore
java.lang.Object
|
+--org.apache.avalon.excalibur.concurrent.DijkstraSemaphore
|
+--org.apache.avalon.excalibur.concurrent.DjikstraSemaphore
推奨されていません。 Replaced by by DijkstraSemaphore
.
- public class DjikstraSemaphore
- extends DijkstraSemaphore
Also called counting semaphores, Djikstra semaphores are used to control
access to a set of resources. A Djikstra semaphore has a count associated
with it and each acquire() call reduces the count. A thread that tries to
acquire() a Djikstra semaphore with a zero count blocks until someone else
calls release() thus increasing the count.
- 導入されたバージョン:
- 4.0
- バージョン:
- CVS $Revision: 1.4 $ $Date: 2001/12/11 09:53:27 $
- 作成者:
- Karthik Rangaraju
コンストラクタの概要 |
DjikstraSemaphore(int maxCount)
推奨されていません。 Creates a Djikstra semaphore with the specified max count and initial
count set to the max count (all resources released) |
DjikstraSemaphore(int maxCount,
int initialCount)
推奨されていません。 Creates a Djikstra semaphore with the specified max count and an initial
count of acquire() operations that are assumed to have already been
performed. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DjikstraSemaphore
public DjikstraSemaphore(int maxCount)
- 推奨されていません。
- Creates a Djikstra semaphore with the specified max count and initial
count set to the max count (all resources released)
- パラメータ:
pMaxCount
- is the max semaphores that can be acquired
DjikstraSemaphore
public DjikstraSemaphore(int maxCount,
int initialCount)
- 推奨されていません。
- Creates a Djikstra semaphore with the specified max count and an initial
count of acquire() operations that are assumed to have already been
performed.
- パラメータ:
pMaxCount
- is the max semaphores that can be acquired
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."