Question
Differentiate between mutexes vs semaphores.

Answers

-Semaphores is a synchronization tool to overcome the critical section problem.

- A semaphore S is basically an integer variable that apart from initialization is accesses only through atomic operations such as wait() and signal().

- Semaphore object basically acts as a counter to monitor the number of threads accessing a resource.

- Mutex is also a tool that is used to provide deadlock free mutual exclusion. It protects access to every critical data item. If the data is locked and is in use, it either waits for the thread to finish or awakened to release the lock from its inactive state.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q To what extent is the film 300 historically accurate?
  • Q What could be reason for shutdown immediate command hanging for long time?
  • Q What is fuel ratio ?
  • Q You are in the midst of configuring a router for a Frame Relay network. What could you do to prevent split horizon problems? (Select all that apply) A. Configure a separate sub-interface for each PVC. Assign a unique DLCI and subnet to each sub-interface. B. Configure each Frame Relay circuit as a point-to-point line to support multicast and broadcast traffic. C. Configure one sub-interface to disperse into multiple PVC connections to multiple remote router interfaces. D. Configure as many as possible sub-interfaces on the same subnet. E. Use the "no ip split-horizons" command on the physical interface.
  • Q Which algorithm in 'Unification and Lifting' takes two sentences and returns a unifier?
  • Q What is the difference between iis 5.1 and iis 6 administration
  • Q Expand CAR ?
  • Q Is it possible to edit the corntab using vi
  • Q What is an ldap server ? and what is it used for in an enterprise environment ?
  • Q Satish Dhawan Space Centre is situated in which island?
  • Q What courses do you wish you had taken that would have prepared you?