# 操作系统面试题

1、进程间的通信方式。【[链接](/backend-development/operating-system/operating-system-basics/inter-process-communication.md)】

2、虚拟内存和物理内存之间的关系。【链接】

3、分页和分段。【链接】

4、进程栈和线程栈的区别。【链接】

5、自旋锁怎么实现？

6、死锁的条件和死锁的避免。

7、共享内存的细节。

8、僵尸进程和孤儿进程。【[链接](/backend-development/operating-system/linux-basics/zombie-orphan.md)】

9、内存分配 。

10、进程调度 。

11、布隆过滤器。

12、线程的实现方式？有什么区别？

13、线程安全什么意思？如何线程安全？

14、线程之间共享的是什么？独有的是什么？

15、什么是协程？

## Linux

1、怎么看占用内存比较多的进程。【链接】

2、用户态和内核态。【[链接](/backend-development/operating-system/linux-basics/user-mode-and-kernel-mode.md)】

* 哪些系统调用会进到内核态？
* 所有的系统调用都会进入到内核态吗？

3、`linux` 中的文件是有个数的吗？（`inode`）【[链接](/backend-development/operating-system/linux-basics/linux-inode.md#inode-hao-jin-gu-zhang)】

4、Linux虚拟内存的布局。【链接】

5、为什么要设堆区和栈区？【[链接](/backend-development/operating-system/linux-basics/linux-process-memory-space-layout.md)】

6、了解Linux的IO栈吗？从键盘输入一串字符显示到终端上的过程是什么？

7、什么是僵尸进程？什么是孤儿进程？·


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mqjyl2012.gitbook.io/backend-development/interview-question/os-interview-questions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
