Linux内核线程没有地址空间 [英] No address space for Linux Kernel threads

查看:174
本文介绍了Linux内核线程没有地址空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么Linux内核线程没有地址空间.为了执行任何任务,它应该有一个内存区域,对吗?内核线程的文本和数据在哪里?

Why the Linux kernel threads do not have an address space. For any task to execute, it should have a memory region right? Where do the text and data of kernel threads go?

推荐答案

内核线程确实具有地址空间.只是他们都共享同一个人.这并不能防止它们各自具有不同的堆栈.

Kernel threads do have an address space. It's just that they all share the same one. This does not prevent them from each having a different stack.

文本和数据在内核地址空间(所有线程共享的地址)中进行布局,具体取决于分配方式和时间以及其用途.

Text and data are laid out in the kernel address space (the one that is shared by all the threads), depending on how and when it was allocated, and what it's used for.

Linux MM 网站上有很多有关Linux这方面的文档.到那边.

The Linux MM site has a lot of documentation about this aspect of Linux. Head over there.

这篇关于Linux内核线程没有地址空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆