Instead of pre-allocating a fixed number of pointers, we can take M.M.Michael's suggestion to allocate new pointers only when the total number of threads that coexisted at any point in time increases.
Can we also de-allocate pointers in a lock-free manner?
Instead of pre-allocating a fixed number of pointers, we can take M.M.Michael's suggestion to allocate new pointers only when the total number of threads that coexisted at any point in time increases.
Can we also de-allocate pointers in a lock-free manner?