---
title: "Discussion on \"what is data race ?\" | Hashnode"
description: "Discussion on \"what is data race ?\". Lately, I have been exploring Golang; it's a fun language.\nso i was reading about this concept of data race ...what is data race and when does it occur,How prevent it?\nconsider the below program:-\n\n\npackage main \n\n\nimport (\n\n    \"sync\"\n    \"fmt\"\n\n)\n\n..."
url: "https://hashnode.com/posts/what-is-data-race/6620f61be41752aa15bdc69a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [what is data race ?](https://ashcodes.hashnode.dev/what-is-data-race?utm_source=hashnode&utm_medium=feed)

Lately, I have been exploring Golang; it's a fun language. so i was reading about this concept of data race ...what is data race and when does it occur,How prevent it? consider the below program:- package main import ( "sync" "fmt" ) ...

Apr 18, 2024 · 2 min read · ashcodes.hashnode.dev  
Read the article

-   [#golang](https://hashnode.com/tag/golang)
-   [#operating-system](https://hashnode.com/tag/operating-system)

## Written by

[Ashish](https://hashnode.com/@ashish784)

@ashish784 · india

  
[View profile](https://hashnode.com/@ashish784)

full stack dev---

hi I am a full stack dev from India,interested in devops and automation,I also try to contribute to opensource in my free time.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
