Searching for "F"

Q:

Four dice are thrown simultaneously. Find the probability that all of them show the same face.

A) 1/216 B) 1/36
C) 2/216 D) 4/216
 
Answer & Explanation Answer: A) 1/216

Explanation:

The total number of elementary events associated to the random experiments of throwing four dice simultaneously is:

 

6*6*6*6=64

 

n(S) = 64

 

Let X be the event that all dice show the same face. 

 

X = { (1,1,1,1,), (2,2,2,2), (3,3,3,3), (4,4,4,4), (5,5,5,5), (6,6,6,6)}

 

n(X) = 6

 

Hence required probability = n(X)n(S)=664 =1216

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What resources are used when a thread is created? How do they differ from those when a process is created?

Answer

When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads.

Report Error

View answer Workspace Report Error Discuss

Q:

What are the benefits of multithreaded programming?

Answer

 



  • Responsiveness

  • Resources sharing

  • Economy

  • Utilization of multiprocessor architectures.

Report Error

View answer Workspace Report Error Discuss

Q:

What are the different functions of Scheduler?

Answer

Scheduler deals with the problem of deciding which of the process in the ready queue is to be allocated the CPU. Short Term Schedulers, Long Term Schedulers

Report Error

View answer Workspace Report Error Discuss

Q:

What is the difference between microkernel and macro kernel?

Answer

Micro-kernal : A micro-kernel is a minimal operating system that performs only the essential functions of an operating system. All other operating system functions are performed by system processes.


Monolithic : A monolithic operating system is one where all operating system code is in a single executable image and all operating system code runs in system mode.

Report Error

View answer Workspace Report Error Discuss

Q:

What is a Safe State and what is its use in deadlock avoidance?

Answer

When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state. System is in safe state if there exists a safe sequence of all processes. Deadlock Avoidance : ensure that a system will never enter an unsafe state.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the difference between Compiler and Interpreter?

Answer

An interpreter reads one instruction at a time and carries out the actions implied by that instruction. It does not perform any translation. But a compiler translates the entire instructions.

Report Error

View answer Workspace Report Error Discuss

Q:

Two brother X and Y appeared for an exam. The probability of selection of X is 1/7 and that of B is 2/9. Find the probability that both of them are selected.

A) 1/63 B) 1/14
C) 2/63 D) 1/9
 
Answer & Explanation Answer: C) 2/63

Explanation:

Let A be the event that X is selected and B is the event that Y is selected.

P(A) = 1/7,  P(B) = 2/9.

Let C be the event that both are selected.

P(C) = P(A) × P(B) as A and B are independent events: 

       = (1/7) × (2/9)  = 2/63

Report Error

View Answer Report Error Discuss

Filed Under: Probability