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

Sponsored Links



Pthread and mutex with an unlock support

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-05-2011
Member
 
Join Date: May 2011
Posts: 135
Pthread and mutex with an unlock support
  

It is clear that the current program leaving those heavy software like anti-virus scan can eat up your 90 to 99% of resources. Thus, a processor, most of the time goes is doing nothing today. Earlier there was more pressure on the processor. I want to know about the idea about Pthread and mutex working at the programming level of a system. There are more parallel computing carried out to give more processing power to the system.

Reply With Quote
  #2  
Old 26-05-2011
Member
 
Join Date: May 2009
Posts: 525
Re: Pthread and mutex with an unlock support

A thread is something where the same process can be divided into several parts, which will run simultaneously, sharing the same data in memory. These parties are called threads. From the view of an user, the threads seem to run in parallel. When a function block such a program (like recv function), if it has a GUI, it will be inactive until the function block. The threads allow us to solve this problem. That is what threads refer to.
Reply With Quote
  #3  
Old 26-05-2011
Member
 
Join Date: May 2009
Posts: 533
Re: Pthread and mutex with an unlock support

Talking about the combination of both it is sometimes necessary to temporarily prohibit certain operations of one or several threads for example, if multiple threads are required to read a variable, make calculations and modify depending on the outcome of these calculations, it should not be that 'they do so at the same time, otherwise it may all just bugs. Mutexes can therefore avoid these synchronization problems.
Reply With Quote
  #4  
Old 26-05-2011
Member
 
Join Date: May 2009
Posts: 503
Re: Pthread and mutex with an unlock support

POSIX stands for Portable Operating System Interface for Unix. On Windows, this library is not installed by default, it will therefore be necessary to do so. You will initially download and install the library and then you can use in our programs. On Windows, this library is not installed by default, it will therefore be necessary to do so. Once this thread is declared, it will have to link it to a function of our choice, the designated function will then happen in parallel with the rest of the application.
Reply With Quote
  #5  
Old 26-05-2011
Member
 
Join Date: May 2009
Posts: 620
Re: Pthread and mutex with an unlock support

A process is generated by the operating system and managed. It provides the programmer is a virtual machine where it can be run his program. Processes are mutually isolated and can only be additional tools of the operating system communicate with each other. This allows the programming of a parallel application with processes are complex. Treads are executed in parallel sequences of instructions within a process. Each thread has its own program counter, its own stack for local data and its own copy of the processor registers. The various threads run but from the same address space.
Reply With Quote
  #6  
Old 26-05-2011
Member
 
Join Date: Mar 2010
Posts: 144
Re: Pthread and mutex with an unlock support

The parallel programming gains in importance in recent times, whether in graphical user interfaces, in which the user can initiate several concurrent activities, whether to take advantage of multiprocessor computers for their computing capacity. Programs that need to react to external events are hardly to program sequentially. In parallel programs, the problem is decomposed into subtasks that can be executed in parallel.
Reply With Quote
Reply

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Pthread and mutex with an unlock support"
Thread Thread Starter Forum Replies Last Post
Unlocking the concept of Mutex WarlordD Software Development 5 27-05-2011 02:31 AM
how to get unlock code or unlock blackberry 8900 with airtel india Depo Portable Devices 5 26-10-2010 07:34 PM
How to set a pthread's affinity to a core instead of a processor LoknathT Motherboard Processor & RAM 6 28-09-2010 12:14 AM
What does Mutex mean in Java? ScarFace 01 Software Development 5 27-01-2010 12:25 PM
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 08:43 AM.