Skip to content

a class to limit the count of the threads that can access to some shared resource.

Notifications You must be signed in to change notification settings

handle/resourcelimitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

resourcelimitor

a class to limit the count of the threads that can access to some shared resource.

ResourceLimitor limitor = new ResourceLimitor();
if(limitor.applyResource()){
    try{
         method.invoke();
    }catch(Exception ex){

    }finally{
         limitor.releaseResource();
    }
 }

About

a class to limit the count of the threads that can access to some shared resource.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published