Question

QUESTION 19 Explain Many-to-many thread mapping techniques and write-down advantage and disadvantage. QUESTION 20 Convoy effect...

QUESTION 19

  1. Explain Many-to-many thread mapping techniques and write-down advantage and disadvantage.

QUESTION 20

  1. Convoy effect is condition when long processes are scheduled to be after the short processes.

    True

    False

1 points   

QUESTION 21

  1. Threads can share files and stacks

    True

    False

1 points   

QUESTION 22

  1. A process in the waiting queue can start running immediately after it receives the response from IO devices.

    True

    False

1 points   

QUESTION 23

  1. A computer cannot understand source code and directly executes it

    True

    False

1 points   

QUESTION 24

  1. ______________ is one of the multi-threading benefits that allows the whole program to run when one or some of threads are blocked.

1 points   

QUESTION 25

  1. Which statement is true.

    All process must be single-threaded

    A process cannot be only single-threaded

    A single thread cannot be a process

    None of them

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION-(19):-

Many-to-many thread mapping technique :-  In the many-to-many thread mapping technique, ​​​​​​​ the process is allocated M number of kernel-level threads in order to execute N number of user-level threads. Here, multiplexing is done between many user-level threads to a short or identical number of kernel threads. The total number of kernel threads may be exclusive to either a specific application or a specific machine that means an application can be allocated more kernel threads on a multiprocessor rather than on a single processor. Developers can generate as many user threads as required, and the corresponding kernel threads can execute in parallel on a multiprocessor.

Advantages :
(1) It gives permission for many user level threads to be mapped to
many kernel threads.
(2) It permits the operating system to create a adequate number of kernel threads.

Disadvantage : It is more intricate to implement.

SOLUTION-(20):- FALSE

EXPLANATION:- In Convey effect, short process behind long process and will be waiting for the long process to finish.

SOLUTION-(21):- FALSE

EXPLANATION:- Threads can share data and code segments but can not share stack because every thread have its own stack for pusing/popping the contents of program counter.

SOLUTION-(22):- FALSE

EXPLANATION:- When an I/O action is finished for a process that requested it and the process now will move from the waiting to the ready state. Now, scheduler can take a decision to preempt the currently-running process and move this newly-ready process into the running state. Therefore, It is clear that a process in the waiting queue can not start running immediately after it receives the response from IO devices so the given statement is FALSE.

SOLUTION-(23):- FALSE

EXPLANATION:- Source code can be understand by people/programmer but cannot be executed directly until it is translated into machine code by compiler, therefore the given statement is FALSE.

SOLUTION-(24):- Responsiveness is one of the multi-threading benefits that allows the whole program to run when one or some of threads are blocked.

=====================================================================================

Add a comment
Know the answer?
Add Answer to:
QUESTION 19 Explain Many-to-many thread mapping techniques and write-down advantage and disadvantage. QUESTION 20 Convoy effect...
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
  • TRUE-FALSE     Basic synchronization principles and multithreading 1. Java user threads can implement both busy-waiting and no-busy-waiting...

    TRUE-FALSE     Basic synchronization principles and multithreading 1. Java user threads can implement both busy-waiting and no-busy-waiting policy. 2. Priority inversion avoids deadlocks. 3. Spinlock mutex can be used as an adaptive mutex. 4. Java RTE can be blocked for Input/Output operation. 5. Interrupted user thread, which executes a method in a monitor, must be rolled back to undo any changes it performed. 6. The synchronization primitive by disabling interrupts can be used by an application program. 7. Bounded-waiting requirement is...

  • JAVA 3 PLEASE ANSWER AS MANY QUESTIONS AS POSSIBLE! ONLY 2 QUESTIONS LEFT THIS MONTH!!! Question...

    JAVA 3 PLEASE ANSWER AS MANY QUESTIONS AS POSSIBLE! ONLY 2 QUESTIONS LEFT THIS MONTH!!! Question 12 pts Which is a valid constructor for Thread? Thread ( Runnable r, int priority ); Thread ( Runnable r, String name ); Thread ( int priority ); Thread ( Runnable r, ThreadGroup g ); Flag this Question Question 22 pts What method in the Thread class is responsible for pausing a thread for a specific amount of milliseconds? pause(). sleep(). hang(). kill(). Flag...

  • Solve it for java Question Remember: You will need to read this assignment many times to...

    Solve it for java Question Remember: You will need to read this assignment many times to understand all the details of the you need to write. program Goal: The purp0se of this assignment is to write a Java program that models an elevator, where the elevator itself is a stack of people on the elevator and people wait in queues on each floor to get on the elevator. Scenario: A hospital in a block of old buildings has a nearly-antique...

  • 10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated...

    10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...

  • 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
ADVERTISEMENT