---
title: "Discussion on \"Understanding the need for Thread-Safe variables using a basic counter in Java\" | Hashnode"
description: "Discussion on \"Understanding the need for Thread-Safe variables using a basic counter in Java\". Parallelization is being done to use the number of cores available in servers and to reduce the time taken for execution. But if race condition isn't handled properly for required variables, it could create unexpected issues in our application.\nFirst..."
url: "https://hashnode.com/posts/understanding-the-need-for-thread-safe-variables-using-a-basic-counter-in-java/5fdcfe691485f22e24b33f2d"
---

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

Discussion

# [Understanding the need for Thread-Safe variables using a basic counter in Java](https://blog.commitbyte.com/understanding-the-need-for-thread-safe-variables-using-a-basic-counter-in-java?utm_source=hashnode&utm_medium=feed)

Parallelization is being done to use the number of cores available in servers and to reduce the time taken for execution. But if race condition isn't handled properly for required variables, it could create unexpected issues in our application. First...

Dec 18, 2020 · 6 min read · blog.commitbyte.com  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#concurrency](https://hashnode.com/tag/concurrency)
-   [#code](https://hashnode.com/tag/code)

## Written by

[Santhosh Manikandan Soundararajan](https://hashnode.com/@santhoshmanikandan)

@santhoshmanikandan · Chennai, India

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

Java/Shell Script developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
