Question
Which of the following short-term process scheduling algorithm(s) can cause a race condition among user processes? Select all that apply. FCFS RR SJF SRTF None
Which of the following short-term process scheduling algorithm(s) can cause a race condition among user processes? Select all that apply.
- FCFS
- RR
- SJF
- SRTF
- None of the above
Which of the following statements regarding how race conditions happen is (are) correct? Select all that apply.
- If all the user processes are all in the same execution priority, a race condition can never occur.
- If each user processes (i.e., processes execute in the user mode of processors) could disable and enable interrupt, a race condition can never occur.
- If processes do not share any resource, such as data in memory and I/O devices, a race condition can never occur.
- Even though processes share some resources, as long as none of the modify any of those shared resources, a race condition can never occur.
- To prevent a race condition from happening, context-switching should not happen to a process which is currently in a critical section.
What is the positive effect in using preemptive process scheduling? Select all that apply.
- Improving throughput
- Improving average turnaround time
- Improving average response time
- Improving (reducing) process starvation
- Improving processor utilization
- Improving (reducing) thrashing
- None of the above
Suppose that processes are going to perform wait operation to two binary (mutex) semaphores consecutively. About the order of how wait to the two binary semaphores are performed, select the correct statement(s) below (select all that apply).
- If processes perform wait operations to the two semaphores in different orders, race condition can happen, but process deadlock can not.
- If processes perform wait operations to the two semaphores in different orders, race condition can not happen, but process deadlock can.
- If processes perform wait operations to the two semaphores in different orders, both race condition and process deadlock can happen.
- If processes perform wait operations to the two semaphores in different orders, neither race condition nor process deadlock can happen.
- None of the above.
What is (are) possible negative side effect(s) for all or nothing method to prevent hold & wait condition from being satisfied? Select all that apply.
- Processes that need a smaller number of resources have a higher chance for waiting, causing starvation to them.
- Processes that need a larger number of resources will be executed slower after they acquire all the resources they need.
- Processes that need a smaller number of resources have a higher chance of making incorrect outputs because of more chances of race conditions to them.
- Processes that need a larger number of resources will suffer from worse turnaround time since acquiring resources will take longer time for them.
- Processes that need a smaller number of resources have poor response time.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started