Searching for "US"

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:

While running DOS on a PC, which command would be used to duplicate the entire diskette?

Answer

diskcopy

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:

Three houses are available in a locality. Three persons apply for the houses. Each applies for one house without consulting others. The probability that all the three apply for the same house is :

A) 2/9 B) 1/9
C) 8/9 D) 7/9
 
Answer & Explanation Answer: B) 1/9

Explanation:

One person can select one house out of 3= 3C1 ways =3.

 

Hence, three persons can select one house out of 3 in 3 x 3 x 3 =9.

 

Therefore, probability that all thre apply for the same house is 1/9

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

In a simultaneous throw of pair of dice. Find the probability of getting the total more than 7.

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

Explanation:

Here n(S) = (6 x 6) = 36

Let E = event of getting a total more than 7
        = {(2,6),(3,5),(3,6),(4,4),(4,5),(4,6),(5,3),(5,4),(5,5),(5,6),(6,2),(6,3),(6,4),(6,5),(6,6)}

Therefore,P(E) = n(E)/n(S) = 15/36 = 5/12.

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

There are six persons A. B, C, D, E and F. C is the sister of F. B is the brother of E's husband. D is the father of A and grandfather of F. There are two fathers, three brothers and a mother in the group. Who is the mother ?

A) A B) B
C) C D) E
 
Answer & Explanation Answer: D) E

Explanation:

D is father of A and grandfather of F. So, A is father of F. 

Thus. D and A are the two fathers. C is the sister of F So. C is the daughter of A. 

Since there is only one mother, it is evident that E is the wife of A and hence the mother of C and F. 

So, B is brother of A There are three brothers. So. F is the brother of C. 

 Clearly, A is E's Husband.

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

If a box contains 10 bulbs,of which just three are defective. If a random sample of five bulbs is drawn, find the probability that the sample contains no defective bulbs.

A) 5/12 B) 7/12
C) 3/14 D) 1/12
 
Answer & Explanation Answer: D) 1/12

Explanation:

Total number of elementary events = 10C5

 

Number of ways of selecting no defective bulbs i.e., 5 non-defective bulbs out of 7 is 7C5.

 

So,required probability =7C510C5 = 1/12.

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

A box contains 10 bulbs,of which just three are defective. If a random sample of five bulbs is drawn, find the probability that the sample contains exactly one defective bulb.

A) 5/12 B) 7/12
C) 3/14 D) 1/12
 
Answer & Explanation Answer: A) 5/12

Explanation:

Total number of elementary events = 10C5

 

Number of ways of selecting exactly one defective bulb out of 3 and 4 non-defective out of 7 is 3C1*7C4

 

So,required probability =3C1*7C4/10C5 = 5/12.

Report Error

View Answer Report Error Discuss

Filed Under: Probability