Question

In the example of producer-and-consumer problem (slide-31), which semaphore is used to implement a critical section...

  1. In the example of producer-and-consumer problem (slide-31), which semaphore is used to implement a critical section for the shared variable, buffer?
    1. s
    2. n
    3. e
    4. all of them
    5. None of tem

  1. Deadlock may happen due to
    1. User consumes too much resource
    2. User holds some resources and waits for more
    3. System does not have shared resources
    4. There are no mutual exclusions of user processes
    5. Users hate each other
  2. Which of the following OS scheduling policy has the worst performance (response time)?
    1. Shortest Job First
    2. Round Robin with fixed quantum
    3. Round Robin with variable quantum
    4. First-Come-First-Serve
    5. No difference, all are about the same
  3. How does OS resolve the problem of starvation of low priority jobs in the priority scheduling policy?
    1. Request the user to resubmit the job with a higher priority
    2. Continue waiting until the high priority jobs are completed.
    3. Increate the priority of aging process in the Ready state.
    4. Allocate more CPU time to do processing.
    5. Stop the preemptive scheduling when there are too many aging processes.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.In the example of producer-and-consumer problem (slide-31), which semaphore is used to implement a critical section for the shared variable, buffer

Ans:: a) s

2.Deadlock may happen due to

Ans::b) User holds some resources and waits for more

3. Which of the following OS scheduling policy has the worst performance (response time)

Ans:: d) First-Come-First-Serve

4. How does OS resolve the problem of starvation of low priority jobs in the priority scheduling policy

Ans:: c) Increase the priority of aging process in the Ready state.

Add a comment
Know the answer?
Add Answer to:
In the example of producer-and-consumer problem (slide-31), which semaphore is used to implement a critical section...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Description In this homework, you are asked to implement a multithreaded program that will allow ...

    Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT