QUESTION 13 10.0 Which of the following conditions is not required for a deadloc
ID: 3701142 • Letter: Q
Question
QUESTION 13 10.0 Which of the following conditions is not required for a deadlock? Non-preemption ("stubborness") Mutually exclusive access. Wait for resources in a circular way. Bounded wait before entering the critical section. O Hold one resource and wait for another QUESTION 14 10.0 The main function of a C program starts ten pthreads and then immediately terminates. What happens next to the process? OThe whole process terminates immediately after the main function terminates. One of the started threads becomes the master thread. The process terminates when all threads terminate. O The process never terminates and must be killed by the user. O The process terminates when any of the remaining threads terminates (either by returning from the thread function or by calling exit0).Explanation / Answer
Question 13)
Answer is
option D ---Bounded wait before entering the critical section
Explanation:
In order for a deadlock to happen there are 4 necessary conditions
Mutual Exclusion: At least one resource is held in a non-sharable mode
Hold and Wait: Holding one resource and wait for another
No Preemption: Resouces cannot be preempted
Circular wait : waiting for resources in a circular way
Question 14)
Anwer is option A
Explanation
The C runtime library automatically calls ExitProcess when you exit the main thread, regardless of whether there are any worker threads still active.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.