由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 大家看看阿三在onsite的时候怎么黑我的 (转载)
相关主题
Re: 大家看看阿三在onsite的时候怎么黑我的问个amazon的题目
Re: 大家看看阿三在onsite的时候怎么黑我的 (转载)总结一下面试(CS related)的准备活动,希望有帮助.
Linux context switch 高通 面试题。??Apple 电面设计题- consistent between key-value store and database
这么多CS的,为啥没人讨论内核,驱动之类的呢。。。service crash后,怎么解决database和cache数据不一致?
register在CPU中,但是也可以用内存地址访问?(embedded) (转载)register file write-through (转载)
软件实现LRU有什么困难么一个很全SAS Interview Q. List [ZT]
求NVIDIA 电话面试经验问一个阿三出的面试题: 什么是iterator invalidation?
why do we need to map user level threads to kernel threads?雇主不能取消I-140的具体条件是什么?
相关话题的讨论汇总
话题: 阿三话题: kernel话题: user话题: onsite话题: coding
进入JobHunting版参与讨论
1 (共1页)
c****m
发帖数: 824
1
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: wannafree (wannafree), 信区: SanFrancisco
标 题: 大家看看阿三在onsite的时候怎么黑我的
发信站: BBS 未名空间站 (Sun Sep 29 15:08:12 2013, 美东)
最近面试一个与file system有关系的公司,junior的职位,onsite有俩阿三(总共5个
人)。
其中一个阿三非常严肃,黑着个脸,本来是安排和我一起吃午餐,他拒绝吃,我一边吃
,他一边问我问题。下面是面试过程中两个问题以及他对我的feedback:
问题一:为什么context switch有big overhead?
我的回答如下:
Because context switch needs to invalidate caches, flush TLB, registers, and
store process related data, which all require a lot of cpu cycles. The new
process also takes time to warm up the cache and TLB.
他后来的feedback是:我对context switch的基本概念不了解 。。。
问题二:
why does the system call need to copy the file name into kernel space when
you call read()/wirte()/open()?
My answer:
User procs and kernel threads work in different address modes. User procs
cannot access kernel address which is in a protected mode. Kernel address
mode is mapped to either high or low 1GB of the user proc' VM. By coping the
file name into its own space, it will be more efficient from the
perspective of memory access.
Another reason may be to prevent the passed file names from being changed in
user space by somebody else.
后来他的feedback是:我对system call以及kernel address mode不了解
另一个阿三很nice,非常热情,先问了我一些问题,全都很顺利,后来coding,后来因
为时间有点不够(最后一个coding只留了15分钟,题目比较繁琐),在解释了主函数的
算法和corner case后,经的他同意省掉了一个辅助函数的coding。当时感觉非常好,
阿三也笑容满面,说well done。
后来的feedback说coding不熟练。
以前总还觉得身边的阿三还不错,这次就是亲身经历。工作很match,白人manager也有
有兴趣,结果被阿三这么一说,全都玩完了。onsite 5个人里有一个国人,但是却无能
为力。
c****m
发帖数: 824
2
我遇到过很多第三个老印,都是笑面虎。找一个巨复杂的题目故意让你遍不完。然后
fail尼,feedback你还没话讲,确实没写完。
1 (共1页)
进入JobHunting版参与讨论
相关主题
雇主不能取消I-140的具体条件是什么?register在CPU中,但是也可以用内存地址访问?(embedded) (转载)
VLSI job opening at Santa Clara软件实现LRU有什么困难么
EE转CS- 感觉郁闷求NVIDIA 电话面试经验
难道真是阿三在作怪?why do we need to map user level threads to kernel threads?
Re: 大家看看阿三在onsite的时候怎么黑我的问个amazon的题目
Re: 大家看看阿三在onsite的时候怎么黑我的 (转载)总结一下面试(CS related)的准备活动,希望有帮助.
Linux context switch 高通 面试题。??Apple 电面设计题- consistent between key-value store and database
这么多CS的,为啥没人讨论内核,驱动之类的呢。。。service crash后,怎么解决database和cache数据不一致?
相关话题的讨论汇总
话题: 阿三话题: kernel话题: user话题: onsite话题: coding