---
title: "Discussion on \"I Thought My malloc Was Thread-Safe — I was wrong\" | Hashnode"
description: "Discussion on \"I Thought My malloc Was Thread-Safe — I was wrong\". I recently built a custom memory allocator in C. What started as a learning exercise turned into something deeper when I tried to make it thread-safe.\nAt one point everything looked right: locks in pl"
url: "https://hashnode.com/posts/i-thought-my-malloc-was-thread-safe-i-was-wrong/69ef77fe330a1ad7f7f043d3"
---

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

Discussion

# [I Thought My malloc Was Thread-Safe — I was wrong](https://under-the-hood.hashnode.dev/i-thought-my-malloc-was-thread-safe-i-was-wrong?utm_source=hashnode&utm_medium=feed)

I recently built a custom memory allocator in C. What started as a learning exercise turned into something deeper when I tried to make it thread-safe. At one point everything looked right: locks in pl

Apr 27 · 3 min read · under-the-hood.hashnode.dev  
Read the article

-   [#systems-programming](https://hashnode.com/tag/systems-programming)
-   [#cprogramminglanguage](https://hashnode.com/tag/cprogramminglanguage)
-   [#multithreading](https://hashnode.com/tag/multithreading)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#memory-management](https://hashnode.com/tag/memory-management)
-   [#concurrency](https://hashnode.com/tag/concurrency)

## Written by

[Prajwal Zore](https://hashnode.com/@whitfrost)

@whitfrost

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

Building it - A Systems Programmer's Log

Systems programmer , i focus on things that do what they are supposed to ,currently learning and building.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
