The Gateway to Computer Science Excellence
0 votes

Consider the following statements:
S1  : Multiprogramming is used to increase CPU utilization, while time-sharing is used to increase CPU responsiveness in interacting with user.
S2  : If a user-level thread is blocked for I/O operation, then kernel of operating system will perform context switching to run another user-thread which is not blocked.
S3  : Many-to-One is the most efficient model of multi-threading because it allows several userlevel threads to be assigned to different processors in a multi-processor computer system.
Which of the following is true?

in Operating System by | 237 views
True. Multiprogramming increases CPU utilization as processes who have I/O operation can be put into queue and another CPU operation thread can be scheduled to work in parallel.


False. In a multi-processor system, I guess many-to-many is most efficient as different threads of same process can be assigned to different kernel threads that can work in parallel. Many-to-one will restrict a single thread to be assigned to kernel at a time.


S2 is false 

T F F is correct answer

1 Answer

0 votes

multiprogramming: basically it suggests that cpu time must never be it doesn't directly enforce preemption as in as far is cpu is not idel it lets the process go on..(default case 1 cpu environment)..The main idea is cpu utilisation..,no fixed time slice is enforced here

time sharing: Its multiprogramming + responsiveness, meaning all processes in main memory or in ready queue should respond time to time given a fixed time slice (at least for a period of time).

kernel do not have any info about user threads...and the fact "if one user thread goes in blocked state,the process including all other threads stop" proves kernel has no hand in context switching of user level threads..##kernel threads ate independent on the other hand and can run or be scheduled or get blocked independently.

The many to one model maps many of the user threads to a single kernel thread. This model is quite efficient as the user space manages the thread management.

A disadvantage of the many to one model is that a thread blocking system call blocks the entire process. Also, multiple threads cannot run in parallel as only one thread can access the kernel at a time.


so answers are





by Junior

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,217 questions
59,907 answers
118,145 users