Skip to content

Leverage atomic variables to ensure the prevention of race conditions. This approach guarantees that two or more Goroutines can access shared resources without conflicts, ensuring seamless and secure interactions.

License

Notifications You must be signed in to change notification settings

superco01/atomic-variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atomic-variable

run 100 goroutines using atomic increment and standard increment

sample of race condition result:

counter atomic result: 100

counter result: 99

About

Leverage atomic variables to ensure the prevention of race conditions. This approach guarantees that two or more Goroutines can access shared resources without conflicts, ensuring seamless and secure interactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages