Khhs167 / memstack

A basic linked-list based tool for managing memory
MIT License
4 stars 2 forks source link

Multithreading support? #29

Open mauro-balades opened 8 months ago

Khhs167 commented 8 months ago

Please provide more context. Why and how would we go about this?

mauro-balades commented 8 months ago

I was just asking if you thought about supporting multithreading or if it even works.

For example, wouldn't allocating new nodes on 2 different threads at the same time corrupt the global list? Just asking if u tested it

Khhs167 commented 8 months ago

It hasn't been tested due to how big of a mess C threading is.

I would assume there would be corruptions in the case of a race condition, but that could be resolved using some lock object.