a********p 发帖数: 11 | 1 原题出处:http://www.mitbbs.com/article_t1/JobHunting/32331973_0_1.html
设计题: a restful server with 4GB,
given a request such as: http://seq=4?len=60?xxxxdata
the system will store the binary data with that sequence number.
given a request: http://startseq=3?maxLen=100, the system returns all data objects with sequence >= 3 with total data length less equal than 100.
multiple clients calling simutaneous
what data structure, concurrency, locking, etc..
大家有什么想法么 | S******n 发帖数: 132 | 2 就用普通vector就可以了吧
用copy-on-write实现读写锁 | a********p 发帖数: 11 | 3 原题出处:http://www.mitbbs.com/article_t1/JobHunting/32331973_0_1.html
设计题: a restful server with 4GB,
given a request such as: http://seq=4?len=60?xxxxdata
the system will store the binary data with that sequence number.
given a request: http://startseq=3?maxLen=100, the system returns all data objects with sequence >= 3 with total data length less equal than 100.
multiple clients calling simutaneous
what data structure, concurrency, locking, etc..
大家有什么想法么 | S******n 发帖数: 132 | 4 就用普通vector就可以了吧
用copy-on-write实现读写锁 | P****d 发帖数: 137 | 5 没太懂,有么有大牛详细的说一下?
【在 S******n 的大作中提到】 : 就用普通vector就可以了吧 : 用copy-on-write实现读写锁
|
|