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
ITT270 Overview of Digital Electronics

Quiz
•
University
10 questions
Excel

Quiz
•
University
5 questions
Quiz1

Quiz
•
University
10 questions
Introduction to Feedback and Control System

Quiz
•
University
12 questions
multimedia tech

Quiz
•
University
10 questions
二進制與十進制轉換測試

Quiz
•
9th Grade - University
13 questions
Software Engineering

Quiz
•
KG - Professional Dev...
8 questions
Hedy Lamarr Quiz

Quiz
•
4th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade