1. as usual, describe one of the projects you were involved with
2. having an object with some ints and string, how would you
serialize it to file in binary and how would you read it back later as effective as possible.
3. write functions for reading and writing into ring buffer a binary array of arbitrary size while allowing lock-free synchronization for multiple threads.
תשובות
הוסף תשובה
|
לצפיה בתשובות
מרץ 2018
2. try to present proper OOD approach
3. write in to ring buffer a single byte of array size, followed by the array itself. Reading function will read the size byte, to know how much to read back. The key for lock-free synchronization is to keep local copies of head and tail indexes while reading or writing and in the end update the global ones, which should be atomic variables.
Qwilt solves the online video problem for network operators with an open caching solution that increases network capacity and improves subscriber quality of experience