Skip to content

alebastrov/SingleCalculationLatch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is simple implementation of latch. When you need to skip some calculation for sumultaneous threads running at the same time and peforming the same calculation (for instance calculate the same Fibonacci number 13) you may rely on this code to make the calculation be performed in ONLY single thread.

As soon as calculation is ready, all waiting threads will be provided with same result.

You may significantly decrease CPU load by using this latch.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published