Searching for "%"

Q:

Explain the meaning of mutex.

Answer

Mutex is the short form for ‘Mutual Exclusion object’. A mutex allows multiple threads for sharing the same resource. The resource can be file. A mutex with a unique name is created at the time of starting a program. A mutex must be locked from other threads, when any thread that needs the resource. When the data is no longer used / needed, the mutex is set to unlock.

Report Error

View answer Workspace Report Error Discuss

Q:

Explain the concept of the Distributed systems?

Answer

Distributed systems work in a network. They can share the network resources, communicate with each other.

Report Error

View answer Workspace Report Error Discuss

Q:

What is Memory-Management Unit (MMU)?

Answer

Hardware device that maps virtual to physical address. In MMU scheme, the value in the relocation register is added to every address generated by a user process at the time it is sent to memory.


->The user program deals with logical addresses; it never sees the real physical addresses

Report Error

View answer Workspace Report Error Discuss

Q:

A box contains 100 balls, numbered from 1 to 100. If three balls are selected at random and with replacement from the box, what is the probability that the sum of the three numbers on the balls selected from the box will be odd?

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

Explanation:

P(odd) = P (even) =12 1(because there are 50 odd and 50 even numbers)

 

Sum or the three numbers can be odd only under the following 4 scenarios:

 

Odd + Odd + Odd = 12*12*1218

 

Odd + Even + Even = 12*12*12=18

 

Even + Odd + Even = 12*12*12=18

 

Even + Even + Odd = 12*12*12 = 18

 

Other combinations of odd and even will give even numbers. 

 

Adding up the 4 scenarios above:

 

1818+1818 = 48 = 12

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

Differentiate between Complier 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:

What is logical and physical addresses space?

Answer

Logical address space is generated from CPU; it bound to a separate physical address space is central to proper memory management. Physical address space is seen by the memory unit. Logical address space is virtual address space. Both these address space will be same at compile time but differ at execution time.

Report Error

View answer Workspace Report Error Discuss

Q:

What is Beaconing?

Answer

The process that allows a network to self-repair networks problems. The stations on the network notify the other stations on the ring when they are not receiving the transmissions. Beaconing is used in Token ring and FDDI networks.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

Q:

What are necessary conditions for dead lock?

Answer

1. Mutual exclusion (where at least one resource is non-sharable)


2. Hold and wait (where a process holds one resource and waits for other resource)


3. No preemption (where the resources can’t be preempted)


4. Circular wait (where p[i] is waiting for p[j] to release a resource. i= 1,2,…n


j=if (i!=n) then i+1


else 1 )

Report Error

View answer Workspace Report Error Discuss