Interview Questions from OS which does a regular round in campus recruitment.
written by Biplav
at Thursday, June 19, 2008
- What do the system calls fork(), vfork(), exec(), wait(), waitpid() do? Whats a Zombie process? Whats the difference between fork() and vfork()?
- How does freopen() work?
- What are threads? What is a lightweight process? What is a heavyweight process? How different is a thread from a process?
- How are signals handled?
- What is a deadlock?
- What are semaphores?
- What is meant by context switching in an OS?
- What is Belady's anomaly?
- What is thrashing?
- What are short-, long- and medium-term scheduling?
- What are turnaround time and response time?
- What is the Translation Lookaside Buffer (TLB)?
- What is cycle stealing?
- What is a reentrant program?
- When is a system in safe state?
- What is busy waiting?
- What is pages replacement? What are local and global page replacements?
- What is meant by latency, transfer and seek time with respect to disk I/O?
- What are monitors? How are they different from semaphores?
- In the context of memory management, what are placement and replacement algorithms?
- What is paging? What are demand- and pre-paging?
- What is mounting?
- What do you mean by dispatch latency?
- What is multi-processing? What is multi-tasking? What is multi-threading?
- What is multi-programming?
- What is compaction?
- What is memory-mapped I/O? How is it different frim I/O mapped I/O?
- List out some reasons for process termination.