05-12-2009
hi all,
1. do any body know this problem is related to which library(glibc-2.7 or pthread-2.7)?
2. whether this problem is rectified in any of the latest releases?
9 More Discussions You Might Find Interesting
1. Programming
Hi,
First of all I appreciate this group very much for its informative discussions and posts.
Here is my question.
I have one process whose virtual memory size increases linearly from 6MB to 12MB in 20 minutes. Does that mean my process has memory leaks?
In what cases does the... (4 Replies)
Discussion started by: shriashishpatil
4 Replies
2. Programming
Today, I wrote a test code for fork/execvp/waitpid. In the parent process, it fork 100 child processes which only execute "date" to print the current datetime. When any child process die, the parent process will receive a SIGCHLD signal. Then, the parent process will re-fork-execvp the child... (7 Replies)
Discussion started by: whererush
7 Replies
3. Programming
I have this code...
#include <stdio.h>
#include <iostream>
#include <pthread.h>
static void* cliente(void *datos);
int main()
{
pthread_attr_t tattr;
int ret;
size_t size = PTHREAD_STACK_MIN + 0x0100;
ret = pthread_attr_init(&tattr);
ret =... (8 Replies)
Discussion started by: JEscola
8 Replies
4. UNIX for Advanced & Expert Users
helo frnds,
I am using RHEL5 and C lang for development.
I am getting some memory leak problem in pthread.
I hav developed a program which creates two threads for listening purpose on two diff ports. both the child threads are doing same job but on diff port no.
I am using... (4 Replies)
Discussion started by: mindTeaser
4 Replies
5. IP Networking
Hi All,
my client server application can work in two modes:
1) one direction - only client sends msgs to server
2) two directions - server gives 'answers' to client.
when program run in the first mode it looks OK, but when server answers to client than client's application exit its... (2 Replies)
Discussion started by: lenna
2 Replies
6. Programming
hi all
Can any one plz explain me about memory leak problem
Thankx (5 Replies)
Discussion started by: sonali
5 Replies
7. Programming
Hi,
I am trying a database server which keeps a B+ plus tree structure and works on it.
I am trying to find the memory used/leak while executing this process.
I check the memory leak by using ps uax command.
When i execute a delete query i am sure that my code frees up the existing... (9 Replies)
Discussion started by: kumaran_5555
9 Replies
8. Red Hat
Hi all
I am using RED HAT 5.4, and i am getting memory uses problem. when i use "sync;echo 3 > /proc/sys/vm/drop_cache" command the memory will release after 2,3 hour memory show 95%.
pls suggest right way.
thanks (37 Replies)
Discussion started by: reply.ravi
37 Replies
9. Web Development
Hi
We have just got a dedicated server with Fasthosts, O/S is Linux CentOS 6 64 bit.
It was a fresh install and I have just moved one WordPress site onto there.
The problem is we seem to be getting a memory leak (that's what Fasthosts said) and the database (I think) keeps crashing, so we... (3 Replies)
Discussion started by: Pokeyzx
3 Replies
LEARN ABOUT ULTRIX
pthread_mutex_consistent
PTHREAD_MUTEX_CONSISTENT(3) Linux Programmer's Manual PTHREAD_MUTEX_CONSISTENT(3)
NAME
pthread_mutex_consistent - make a robust mutex consistent
SYNOPSIS
#include <pthread.h>
int pthread_mutex_consistent(pthread_mutex_t *mutex);
Compile and link with -pthread.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
pthread_mutex_consistent():
_POSIX_C_SOURCE >= 200809L
DESCRIPTION
This function makes a robust mutex consistent if it is in an inconsistent state. A mutex can be left in an inconsistent state if its owner
terminates while holding the mutex, in which case the next owner who acquires the mutex will succeed and be notified by a return value of
EOWNERDEAD from a call to pthread_mutex_lock().
RETURN VALUE
On success, pthread_mutex_consistent() returns 0. Otherwise, it returns a positive error number to indicate the cause of the error.
ERRORS
EINVAL The mutex is either not robust or is not in an inconsistent state.
VERSIONS
pthread_mutex_consistent() was added to glibc in version 2.12.
CONFORMING TO
POSIX.1-2008.
NOTES
pthread_mutex_consistent() simply informs the implementation that the state (shared data) guarded by the mutex has been restored to a con-
sistent state and that normal operations can now be performed with the mutex. It is the application's responsibility to ensure that the
shared data has been restored to a consistent state before calling pthread_mutex_consistent().
Before the addition of pthread_mutex_consistent() to POSIX, glibc defined the following equivalent nonstandard function if _GNU_SOURCE was
defined:
int pthread_mutex_consistent(const pthread_mutex_t *mutex);
This GNU-specific API, which first appeared in glibc 2.4, is nowadays obsolete and should not be used in new programs.
EXAMPLE
See pthread_mutexattr_setrobust(3).
SEE ALSO
pthread_mutexattr_init(3), pthread_mutex_lock(3), pthread_mutexattr_setrobust(3), pthread_mutexattr_getrobust(3), pthreads(7)
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 2017-08-20 PTHREAD_MUTEX_CONSISTENT(3)