Ch06-Synchronization Tools_part2
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
徐leo 徐leo
Used 3+ times
FREE Resource
Enhance your content in a minute
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
11 - Avoiding Copyright Infringement
Quiz
•
9th Grade - University
10 questions
Guided transmission media
Quiz
•
University
12 questions
Computer Ethics
Quiz
•
7th Grade - Professio...
10 questions
TDC1231 Lec3 Quiz
Quiz
•
KG - University
10 questions
Basic Computer
Quiz
•
University
10 questions
4.3 Interrupts
Quiz
•
9th Grade - University
11 questions
Quiz Pit-Stop 4 (Troubleshooting)
Quiz
•
University
10 questions
ICT 1202-B-2021-Q1
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
