recategorized by
2,250 views

1 Answer

1 votes
1 votes
One of the strategy to avoid deadlock situation in Java Multithreading is using timeout. Suppose, one thread has acquired lock on one resource and now waiting for lock on another resource. After certain time period if it can not acquire lock on resource 2 then it should stop waiting for lock on resource 2. Also it should release lock on resource 1. Thus deadlocks will be avoided.

so ans is A
Answer:

Related questions

2 votes
2 votes
1 answer
2
go_editor asked Jul 7, 2016
1,283 views
Match the following with respect to java.util.$\ast$ class methods :$\begin{array}{clcl} \text{(a)} & \text{Bit Set} & \text{(i)} & \text{Time zone getTimezone()} \\ \t...
2 votes
2 votes
2 answers
3
go_editor asked Jul 7, 2016
4,258 views
The mechanism that binds code and data together and keeps them secure form outside world is known asAbstractionInheritanceEncapsulationPolymorphism