操作系统有两个基本功能:
1)防止硬件被失控的应用程序滥用。
2)像应用程序提供一些简单的机制来控制复杂而又通常大相径庭的低级硬件设备。操作系统通过几个抽象概念实现上述功能:进程,虚拟内存和文件
进程
对于指令和数据的抽象
线程
一系列可以与其他同类并行执行的指令,a thread of execution is the smallest sequence of programmed instructions. Multiple threads can exist within one process, executing concurrently and sharing resources such as memory, while different processes do not share these resources.
-
两者不同:
- processes are typically independent, while threads exist as subsets of a process
- processes carry considerably more state information than threads, whereas multiple threads within a process share process state as well as memory and other resources
- processes have separate address spaces, whereas threads share their address spac
最后
以上就是粗犷老虎最近收集整理的关于操作系统管理硬件操作系统有两个基本功能:的全部内容,更多相关操作系统管理硬件操作系统有两个基本功能内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复