Microsoft interview question

Implement a lock-free queue/stack/... using atomic test-and-set functions.

Interview Answers

Anonymous

25 Aug 2010

Refer to MSDN for existing WinAPI atomic operations routines.. and existing lock-free functions :)

Anonymous

20 Oct 2010

YES, this is exactly what they expected! Otherwise, they may show you a screen from MSDN - you must read the description and be able to write a code utilizing this function. Really makes sense!