---
title: "Discussion on \"Ensuring Thread Safety — .NET core-centric\" | Hashnode"
description: "Discussion on \"Ensuring Thread Safety — .NET core-centric\". Prefer immutability\nWhat: Make data read-only after construction. Instead of editing objects, create new ones.\nWhy: If nothing changes, many threads can read safely with no locks.\nHow (.NET):\npublic r"
url: "https://hashnode.com/posts/ensuring-thread-safety-net-core-centric/6a3e61b06b464eaabf613d29"
---

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

Discussion

# [Ensuring Thread Safety — .NET core-centric](https://nova-globen.hashnode.dev/ensuring-thread-safety-net-core-centric?utm_source=hashnode&utm_medium=feed)

Prefer immutability What: Make data read-only after construction. Instead of editing objects, create new ones. Why: If nothing changes, many threads can read safely with no locks. How (.NET): public r

Jun 26 · 3 min read · nova-globen.hashnode.dev  
Read the article

-   [#threads](https://hashnode.com/tag/threads)
-   [#safety](https://hashnode.com/tag/safety)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#core](https://hashnode.com/tag/core)

## Written by

[Hossein Esmati](https://hashnode.com/@desmati)

@desmati · Stockholm, Sweden

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
