troubleshooting Question

Synchronize question

Avatar of matthew016
matthew016Flag for Belgium asked on
Programming Languages-OtherJava
5 Comments1 Solution336 ViewsLast Modified:
Hi,

I have a class calling IndexSearcherManager,
it has a set of synchronized methods, because it is a web application (so multi-threaded environment) and
these methods do operations on a file system.

But sometimes in my code I need to 'lock' the access to this file system.

I want the requests to these synchronized methods been waiting until I unlock it again.

How can I do this ?

Thank u.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros