Skip to content

srikrishnag/ThreadAffinity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

ThreadAffinity

  • Main program of this application is: MainThreadPoolTest
  • Used unbounded buffer solution, this may create OOM, improvement is to use bounded queueing, current approach is developed on top of interface definition available that has only poolsize as a state variable
  • Used system.out.println for logging, we can use logging libraries for better control of log levels(Naive java lib used without any external libraries)
  • Used non blocking method for thread affinity, so that there are no locks required for handling queued up tasks(non shared information for current sol)
  • Assumption: Number of unique jobs = Thread pool size. If we want many jobs to be mapped to smaller thread pool size we can use consistent hashing

About

ThreadAffinityPool pool an extension to threadpool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages