5 ms·
Good timing. I literally had to do this on a whiteboard in an interview about 11 hours ago. Interesting things to consider: Fragmentation prevention, real-tim
by 01100011 8y ago
Good timing. I literally had to do this on a whiteboard in an interview about 11 hours ago.
Interesting things to consider: Fragmentation prevention, real-time performance, minimizing locking(lock-free techniques, or per-thread free lists), and reusing the freed memory to contain the free list structure. I basically started out whiteboarding what the article lays out and by the end of the interview realized everything wrong with it. It's a good starting point though.
- sbmthakur 8y agoIf I may ask, what position/designation you were interviewing for?