{"id":18807004,"url":"https://github.com/zriyansh/atomic-variable-in-go","last_synced_at":"2026-07-17T22:04:44.517Z","repository":{"id":122976846,"uuid":"454141963","full_name":"zriyansh/atomic-variable-in-go","owner":"zriyansh","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-01T18:10:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T01:10:40.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zriyansh.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-31T19:30:05.000Z","updated_at":"2022-01-31T19:30:19.000Z","dependencies_parsed_at":"2024-06-19T17:32:16.820Z","dependency_job_id":"40ba9d6d-4d79-4416-af68-6d40fc6c61bd","html_url":"https://github.com/zriyansh/atomic-variable-in-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zriyansh/atomic-variable-in-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fatomic-variable-in-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fatomic-variable-in-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fatomic-variable-in-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fatomic-variable-in-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zriyansh","download_url":"https://codeload.github.com/zriyansh/atomic-variable-in-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fatomic-variable-in-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259774631,"owners_count":22909169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T22:50:33.276Z","updated_at":"2025-10-14T17:06:34.177Z","avatar_url":"https://github.com/zriyansh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"atomic variable implemenation took 3 sec\n\n\nmutex(multithread) implementation took 27 sec\n\n\nsingle threaded implemenation took 37 seconds\n\n\nwe used atomic var bcoz we were not context switching many times over, else this would have not been a good option\n\n\nin this program, our countLetters () is fast, we have to just wait for pages to load that is taking all the time.\n\nmutex, when we apply lock to a process, we give control to the OS, then OS manages the resources of those mutexes and it wastes a few CPU cycles. Spinning locks improves this. It minimises control being transferred to OS","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzriyansh%2Fatomic-variable-in-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzriyansh%2Fatomic-variable-in-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzriyansh%2Fatomic-variable-in-go/lists"}