3 ms·The problem is that you would still need to lock around sbrk.by pcwalton 7y agoThe problem is that you would still need to lock around sbrk.earenndil 7y agoFair enough. You would probably switch to mmap, though, which works across threads.