注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
我career fair投了之后两个月终于有HR来联系我了 给了个面试 面hybrid cloud team的, description里面提到了distributed system和OS于是我重点复习了OS,但我发现并没考lock/semephores....
我直接说题目了。。。对 这公司是要你打电话过去的而不是等电话。。。特别猎
1. Returns the offset of the first occurrence of needle inside the haystack。 Returns -1 if not found。 这很简单。 followup是我在第一个implementation里面用了s台电脑该咋办。。。我答:用一台电脑建个queue让这个main machine distribute work或者让other machines来grab work。。。
不造会不会拿到二面= = 不过。。。谁来好好说一下最后一个followup啊?应该怎么distribute work昂?哪里可以看到类似的这种design的正确解决方式啊?
|