Results 1 to 6 of 6

Thread: Pthread and mutex with an unlock support

  1. #1
    Join Date
    May 2011
    Posts
    136

    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.

  2. #2
    Join Date
    May 2009
    Posts
    529

    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.

  3. #3
    Join Date
    May 2009
    Posts
    543

    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.

  4. #4
    Join Date
    May 2009
    Posts
    511

    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.

  5. #5
    Join Date
    May 2009
    Posts
    637

    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.

  6. #6
    Join Date
    Mar 2010
    Posts
    145

    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.

Similar Threads

  1. Unlocking the concept of Mutex
    By WarlordD in forum Software Development
    Replies: 5
    Last Post: 27-05-2011, 02:31 AM
  2. Replies: 5
    Last Post: 26-10-2010, 07:34 PM
  3. How to set a pthread's affinity to a core instead of a processor
    By LoknathT in forum Motherboard Processor & RAM
    Replies: 6
    Last Post: 28-09-2010, 12:14 AM
  4. What does Mutex mean in Java?
    By ScarFace 01 in forum Software Development
    Replies: 5
    Last Post: 27-01-2010, 12:25 PM
  5. Critical Error: Attempt to release mutex not owned by caller
    By Iksura in forum Small Business Server
    Replies: 4
    Last Post: 06-03-2009, 03:22 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,596,059.36341 seconds with 16 queries