Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 26-05-2011
Member
 
Join Date: Mar 2011
Posts: 23
Unlocking the concept of Mutex

I want a small explanation on Mutex. I am into programming and using an open source operating system. On an old system it is not possible to run multiple software with an low hardware support. So I want to understand how this works and what is the concept behind unlocking this item. This is not quiet easy to do with some kind of tool and other support. As the entire operating and hardware architecture relies on the same for performance.
Reply With Quote
  #2  
Old 26-05-2011
Member
 
Join Date: May 2009
Posts: 523
Re: Unlocking the cocept of Mutex

First you must understand what it an Mutex and how does it works. In a multi-programmed system with a single processor. One of the big problems that you can find is sharing resources is fraught with risks. For example, if two processes simultaneously make use of a variable globaly both held both reading and operations on that variable, in order to run and writes is critical. It is mostly referred to hyper threading.
Reply With Quote
  #3  
Old 26-05-2011
Member
 
Join Date: Apr 2009
Posts: 484
Re: Unlocking the cocept of Mutex

Here is an basic understanding of Mutex. In this there can be a situations where two or more processes read or write in a shared memory area and the final result depends on the moment of execution of each. The same is then solved by preventing more than one process simultaneously access the shared variables. Then the same is solved by ensuring mutual exclusion. Is that a single process temporarily exclude all others to use a shared resource so as to guarantee the integrity of the system.
Reply With Quote
  #4  
Old 26-05-2011
Member
 
Join Date: May 2009
Posts: 532
Re: Unlocking the cocept of Mutex

On an system concurrent processes conflict when they compete for the use of the same resource. This is a common case for an single core cpu. Because they want to access a resource at the same time. And the execution of a process can influence the behavior of competing processes and the operating system will assign the appeal to one and the other will have to wait. So the process is waiting, it will delay, to crash and the worst will never end successfully.
Reply With Quote
  #5  
Old 26-05-2011
Member
 
Join Date: Mar 2010
Posts: 153
Re: Unlocking the cocept of Mutex

It needs to be more highlighted. To understand a little better the concept we present the for example you have an operating system to assign a process ID (PID) to two processors in a multiprocessor system. When the OS does this action on two processors simultaneously without any control, errors may occur, as may be assigned the same PID to two different processes. This problem occurs because they constitute a critical section to be executed in atomic form, i.e., in a complete and indivisible and no other process can execute that code while the former did not finish his section.
Reply With Quote
  #6  
Old 27-05-2011
Member
 
Join Date: Apr 2009
Posts: 567
Re: Unlocking the cocept of Mutex

Each process must request permission to enter the critical section by some piece of code that generically named entry into the critical section. When a process exits the critical section must be shown by another piece of code called critical section exit. This piece will allow other processes to execute the code entering the critical section. Mutual Exclusion: If a process is executing code from the critical section, no other process can do.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Unlocking the concept of Mutex"
Thread Thread Starter Forum Replies Last Post
Pthread and mutex with an unlock support Habiba22 Software Development 5 26-05-2011 06:13 AM
What does Mutex mean in Java? ScarFace 01 Software Development 5 27-01-2010 12:25 PM
Concept of the Constraints in SQL Smita.bendal Software Development 4 30-11-2009 11:25 AM
Concept of UML Jagadamba Software Development 3 20-11-2009 09:53 AM
Critical Error: Attempt to release mutex not owned by caller Iksura Small Business Server 4 06-03-2009 03:22 AM


All times are GMT +5.5. The time now is 02:47 PM.