Searching for "or"

Q:

OSI Reference Model provides a framework for discussing network operations and design

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

It provides a framework for discussing network operations and design

Report Error

View Answer Workspace Report Error Discuss

Subject: Networking
Job Role: Database Administration

Q:

Explain the popular multiprocessor thread-scheduling strategies.

Answer

  1. Load Sharing: Processes are not assigned to a particular processor. A global queue of threads is maintained. Each processor, when idle, selects a thread from this queue. Note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis.

  2. Gang Scheduling: A set of related threads is scheduled to run on a set of processors at the same time, on a 1-to-1 basis. Closely related threads / processes may be scheduled this way to reduce synchronization blocking, and minimize process switching. Group scheduling predated this strategy.

  3. Dedicated processor assignment: Provides implicit scheduling defined by assignment of threads to processors. For the duration of program execution, each program is allocated a set of processors equal in number to the number of threads in the program. Processors are chosen from the available pool.

  4. Dynamic scheduling: The number of thread in a program can be altered during the course of execution.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the resident set and working set of a process?

Answer

Resident set is that portion of the process image that is actually in real-memory at a particular instant. Working set is that subset of resident set that is actually needed for execution. (Relate this to the variable-window size method for swapping techniques.)

Report Error

View answer Workspace Report Error Discuss

Q:

The probabiltiy that throw of two dice yields a total of 5 or 6 is:

A) 2/14 B) 5/18
C) 3/4 D) 1/4
 
Answer & Explanation Answer: B) 5/18

Explanation:

Total number of cases=36

Number of favourable cases(sum 5 or 6)=10

P(getting total of 5 or 6)=10/36=5/18

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What are short, long and medium-term scheduling?

Answer

Long term scheduler determines which programs are admitted to the system for processing. It controls the degree of multiprogramming. Once admitted, a job becomes a process.


Medium term scheduling is part of the swapping function. This relates to processes that are in a blocked or suspended state. They are swapped out of real-memory until they are ready to execute. The swapping-in decision is based on memory-management criteria.


Short term scheduler, also know as a dispatcher executes most frequently, and makes the finest-grained decision of which process should execute next. This scheduler is invoked whenever an event occurs. It may lead to interruption of one process by preemption.

Report Error

View answer Workspace Report Error Discuss

Q:

What is a binary semaphore? What is its use?

Answer

A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.

Report Error

View answer Workspace Report Error Discuss

Q:

Find the probability that it is either white or red ball when,one ball is drawn at random in a bag that contains 3 black,4 white and 5 red balls

A) 0.5 B) 0.75
C) 0.25 D) 0.8
 
Answer & Explanation Answer: B) 0.75

Explanation:

P(red ball) = 5/12

P(white ball) = 4/12

P(red or white ball) = 5/12 + 4/12 = 3/4 = 0.75

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

A bag contains 3 black, 4 white and 5 red balls. One ball is drawn at random. Find the probability that it is either black or red ball:

A) 2/3 B) 1/4
C) 5/12 D) 1/2
 
Answer & Explanation Answer: A) 2/3

Explanation:

P(black ball)=3/12

P(red ball)=5/12

P(black or red)=3/12+5/12=2/3

Report Error

View Answer Report Error Discuss

Filed Under: Probability