17- True or False? A binary semaphore is a semaphore that requires only a
binary-valued counter. A counting semaphore is a synchronization object that can
have an arbitrarily large number of states.
(a) True
(b) False
18- In what three common languages can monitors be implemented?
(a) Java, Ada, and C++
(b) Java, Ruby, and C++
(c) Ada, java, and CH
(d)Java, Ada, JavaScript
19- What does the Java yield method do?
(a) The Java yield method immediately put the thread in the task-ready queue.
Making it ready to run.
(b) The Java yield method blocks the thread.
(c) The Java yield method terminated the thread.
20- True or False? What is the difference between physical and logical
concurrency?
(a)Physical concurrency is several program units from the same program that
literally execute simultaneously.
(b)Logical concurrency is multiple processors providing actual concurrency, when
in fact the actual execution of programs is taking place in interleaved fashion on a
single processor.
(a) True
(b) False
17- True or False? A binary semaphore is a semaphore that requires only a binary-valued counter. A counting semaphore is a synchronization object that can have an arbitrarily large number of states. (a) True
(b) False
18- In what three common languages can monitors be implemented?
(a) Java, Ada, and C++
(b) Java, Ruby, and C++
(c) Ada, java, and C#
(d)Java, Ada, JavaScript
19- What does the Java yield method do? (a) The Java yield method immediately put the thread in the task-ready queue Making it ready to run.
(b) The Java yield method blocks the thread.
(c) The Java yield method terminated the thread.
20- True or False? What is the difference between physical and logical concurrency? (a)Physical concurrency is several program units from the same program that literally execute simultaneously. (b)Logical concurrency is multiple processors providing actual concurrency, when in fact the actual execution of programs is taking place in interleaved fashion on a single processor.
(a) True
(b) False