Ch06-Synchronization Tools_part01
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
徐leo 徐leo
Used 2+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Process有分independent processes 和 cooperation processes,請問那一種會發生race condition?
independent processes
cooperation processes
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
cooperation processes發生race condition,主要原因是(複選)
processes的執行順序無法確定
優先權低的process永遠搶不到資源
processes共享記憶體變數
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
造成cooperation processes執行順序無法確定的主要原因是?
CPU number
Interrupt
Memory size
4.
MULTIPLE SELECT QUESTION
1 min • 1 pt
為何我們不直接關閉interrupt 解決race condition? (複選)
Interrupt無法關閉
關閉interrupt方法,在多核心CPU下不適用
關閉interrupt指令只能在Kernel mode執行,User 不能在程式直接呼叫
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
下面哪一個不是硬體支援processes做同步的選項
Peterson’s solution
Hardware instructions
Atomic variables
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Peterson’s solution 中有一個指令順序被編譯器重新排序,導致無法解決Race condition問題,請問可以用何種方式解決?
Memory barriers
Hardware instructions
Atomic variables
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
以下哪一個是屬於atomic hardware instructions(複選)
memory barrier()
test_and _ set()
compare_and_swap()
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
以下對於單元變數 (Atomic variables)描述,何者有錯?
可以對變數進行atomic operation,即存取變數過程不被中斷,以達到互斥
使用special functions 如 Increment ( )
可以透過memory barrier實踐
9.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
以下哪一種同步工具可以滿足解決CS的3個條件
Peterson’s solution
Memory barriers
Hardware instructions
Similar Resources on Wayground
10 questions
Session 7 | U
Quiz
•
University
10 questions
IAs1-Quiz No.2 (final term)
Quiz
•
University
10 questions
5-函数
Quiz
•
University
14 questions
网络与通讯2
Quiz
•
10th Grade - University
10 questions
Platform Technology - Prelim Quiz
Quiz
•
University
10 questions
CNET251 Chapt 3 Governance & Strategic Planning for Security
Quiz
•
University
12 questions
Chapter 6
Quiz
•
University
10 questions
ARTIFICIAL intelligence
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
