操作系统管理硬件

操作系统通过进程、线程和虚拟内存等抽象概念,防止硬件被应用程序滥用,并提供简单机制控制硬件。虚拟内存作为内存管理技术,利用磁盘作为高速缓存,提供独立、一致的地址空间,同时实现存储器保护和高效利用。文件系统将所有外部设备视为可读写的文件,简化I/O操作。
摘要由CSDN通过智能技术生成

操作系统有两个基本功能:

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
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值