Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
1 answer
175 views

Concurrent stack in C - follow-up

This is a follow-up question to Concurrent stack in C The pop function not just removes the top element from the stack, but also returns it. If a pthreads call ...
coderodde's user avatar
  • 29.8k
7 votes
2 answers
928 views

Concurrent stack in C

(See also the follow-up question.) I was in the mood for pthread.h and decided to write a concurrent stack data structure. My requirements: the stack has maximum ...
coderodde's user avatar
  • 29.8k