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

               操作系统选择题·五

  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 天津

相关推荐

程序员小假:人才
点赞 评论 收藏
分享
03-31 18:02
门头沟学院 Java
白日梦想家_等打包版:不要的哦佛给我
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务