Tagged Questions
20
votes
8answers
28k views
Is there a Mutex in Java?
Is there a Mutex object in java or a way to create one?
I am asking because a Semaphore object initialized with 1 permit does not help me.
Think of this case:
try {
semaphore.acquire();
//do ...
0
votes
2answers
65 views
How to concurrently modify a Vector
I have to ensure while iterating the Vector; there is no update on that Vector to avoid ConcurrentModificationException. I can use concurrent collection. But i just want to give a try on Vector. Below ...
0
votes
1answer
411 views
Start/Suspend/Resume a method in Java [duplicate]
Possible Duplicate:
Start/Suspend/Resume/Suspend … a method invoked by other class
I want to implement an Anytime k-NN classifier but I cannot find a way to call the "classify(...)" ...