Ch06-Synchronization Tools_part2
Quiz
•
Computers
•
University
•
Hard
徐leo 徐leo
Used 3+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
下列哪一個是OS提供的同步工具?(複選)
memory barrier
mutex lock
semaphore
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
mutex lock 使用哪2個atomic function處理boolean variable?(複選)
wait ( )
acquire ( )
release ( )
signal ( )
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
以下對於busy waiting描述何者有誤?
process未能進入CS,只能不斷呼叫acquire( )或wait(),等待進入CS
搶不到CPU資源
執行過程是在浪費CPU資源
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
以下哪一個同步方法可以解決Busy waiting 問題?
memory barrier
semaphore
peterson's solution
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
以下哪一個對spinlock描述有誤?
是一種mutex lock
不須做context switch
沒有 busy waiting 問題
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
semaphore使用哪2個atomic function處理boolean variable?(複選)
wait ( )
acquire ( )
release ( )
signal ( )
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
以下哪一個是semaphore的正確使用方法?
wait (s);
critical section
signal (s);
wait (s);
critical section
wait (s);
signal (s);
critical section
wait (s);
signal (s);
critical section
signal (s);
8.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
OS在Uniprocessor system中,可以如何實踐semaphore,做到呼叫wait ( ) and signal ( ) 不會發生race condition?
disable interrupt
use test_and_set ( )
use compare_and_swap ( )
9.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
OS在multicore system中,可以如何實踐semaphore,做到呼叫wait ( ) and signal ( ) 不會發生race condition?
disable interrupt
使用硬體解決方案,test and set( ) or compare and swap( )
Similar Resources on Wayground
10 questions
7-面向对象编程、类与对象
Quiz
•
University
13 questions
Understanding Network Hardware and Topologies
Quiz
•
10th Grade - University
10 questions
Lesson 3: Networking
Quiz
•
University
14 questions
Common Components of a Network
Quiz
•
University
12 questions
Mastering the Interview Process
Quiz
•
10th Grade - University
10 questions
Quizizz Tổng hợp kiến thức
Quiz
•
5th Grade - University
12 questions
ATMN251-W6-Review and Check ins
Quiz
•
University
11 questions
H446 Exam Style Question - CPU 1.1.1
Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
