【操作系统选择题·五】进程同步 & 死锁 -英-速过

               操作系统选择题·五

  1. Concurrent access to shared data may result in ____________

    A. data consistency

    B.data insecurity

    C.data inconsistency

    D.none of the mentioned


    答案:C
  1. A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called ____________

    A. data consistency

    B.race condition

    C.aging

    D.starvation


    答案:B
  1. Which of the following conditions must be satisfied to solve the critical section problem?

    A. Mutual Exclusion

    B. Progress

    C. Bounded Waiting

    D. All of the mentioned


    答案:D
  1. A minimum of _____ variable(s) is/are required to be shared between processes to solve the critical section problem.

    A. one

    B.two

    C.three

    D.four


    答案:B
  1. An un-interruptible unit is known as ____________

    A. single

    B.atomic

    C.static

    D.none of the mentioned


    答案:B
  1. Semaphore is a/an _______ to solve the critical section problem.

    A. hardware for a system

    B.special program for a system

    C.integer variable

    D.none of the mentioned


    答案:C
  1. What is the main disadvantage of spinlocks?

    A. they are not sufficient for many process

    B. they require busy waiting

    C. they are unreliable sometimes

    D. they are too complex for programmers


    答案:B
  1. If the semaphore value is negative ____________

    A. its magnitude is the number of processes waiting on that semaphore

    B.it is invalid

    C.no operation can be further performed on it until the signal operation is performed on it

    D.none of the mentioned


    答案:A
  1. What are the two kinds of semaphores?

    A. mutex & counting

    B. binary & counting

    C. counting & decimal

    D. decimal & binary


    答案:B
  1. If no process is suspended, the signal operati

    答案:C

剩余60%内容,订阅专栏后可继续查看/也可单篇购买

①【目录在页面最底部or顶部,所有文章可以通过目录进入】 ②【看前言 & 目录 !!!】。 ②【看前言 & 目录 !!!】。 ②【看前言 & 目录 !!!】。 ②【看前言 & 目录 !!!】。 ②【看前言 & 目录 !!!】。 ②【看前言 & 目录 !!!】。 ③鸽了两年之后的【操作系统】系列选择题总结如期而至,hhhh。 ④有问题可以私信问我哦。

全部评论
关于第11题:正确答案是 c) 上述全部。 如果一个系统可以按照一定的顺序为每个进程分配资源,并且仍然可以避免死锁,那么这个系统就被认为处于安全状态。这意味着,即使所有进程都提出了最大资源需求,系统也能以不发生死锁的方式分配资源。 此外,安全状态的特点是存在安全序列。安全序列是进程的一种排序方式,其中每个进程都能获取所需的资源,并最终释放这些资源,允许其他进程获取必要的资源。 因此,选项 a) 和 b) 中提到的两个条件都是系统处于安全状态的必要条件,因此选项 c) 是正确答案。
点赞 回复 分享
发布于 2023-08-21 17:55 北京
11.C
点赞 回复 分享
发布于 2023-06-17 17:10 浙江
第十一题答案貌似有误,雨课堂原题答案是C,以上均满足
点赞 回复 分享
发布于 2023-01-01 10:57 天津

相关推荐

DKS233:(1)专业技能:Java8也太旧了,最少也要了解到JDK17吧,可以参考现在SpringBoot支持的Java最低版本,熟悉mysql基本理论具体指啥,是锁这种具体原理还是分库分表这些业务场景,spring这些专业词汇,大小写要写对(全篇简历都有这个问题,显得不严谨),熟悉使用框架进行业务开发就别写了,如果要写,起码要写到框架原理部分吧,比如aop,启动原理什么的,springcloud具体指哪些模块呢,写清楚,网关还是鉴权还是什么,“改造”没必要写吧,你直接说用springcloud开发的不就行了(2)项目经历:首先格式就有大问题,时间怎么能换行呢,调整一下,响应速度那个,如果指的是将部分数据从其他数据库转到redis的提升就别写了,因为这个不算难点,redis可以写写分布式这些,比如容灾怎么实现的,数据库同步怎么做的
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务